I downloaded a project from GitHub, then pod the following files, some of which are written by OBJ-C and I used a bridge header.
pod ‘SnapKit’
pod ‘MJRefresh
Deleting Podfile.lock
and re-running pod install
fixed this for me.
In my case, I was building with the wrong scheme (Top-Left menu).
I have tried all of the above steps mentioned in the answers but nothing worked for me, the problem was basically with the deployment target version for the project and in the podfile.
In my project deployment target was 10.0 while in my podfile it was 11.0.
I had same scenario, make sure for the file A that you have included in YourProjectName-Bridging-Header.h
Make sure you're opening the proper project workspace, otherwise, the Podfile
may not have all the resources it needs to compile.
I saw this same error on a project that had been working fine previously.
I discovered that I had accidentally opened the ProjectName.xcodeproj
file rather than the ProjectName.xcworkspace
file. Opened the xcworkspace
file and presto, project was working again!
For my case I had a typo in folder name "Supporing FIles" instead of "Supporting Files".