Reputation: 31
My Xcode project is able to successfully build and run on a simulator but when I try to archive it an issue comes up saying that the project cannot import the bridging header.
Here is the image app working on a simulator.
Now when I try to archive it onto the generic IOS device I get these errors:
This is the error I get - Failed to import bridging header.
Some of the things we tried include:
Moving the files that are not found from the pods folder to the app folder (get errors with duplicate files - even after we delete the files from the pod folder).
Adding the SDK paths to the Release search path (so its not just in the debug path) - we get the same original error.
Any help would be appreciated, thank you.
Upvotes: 3
Views: 741
Reputation: 73
I stumbled on this since I had same issue. Here's how I solved it if anybody still interested
Go to your project's settings, "General" tab, scroll down to "Linked Frameworks and Libraries" click "plus" and add all the libraries it fails to import when archiving
Upvotes: 1