Reputation: 209
Using CocoaPods I can build my project and run it fine, but when I try to archive I get 'no such module' errors. I've looked all over and tried a bunch of different things to try to solve this problem to no avail.
The one thing I've found is if I set the target build settings Build Active Architecture Only to 'Yes', I can archive just fine. I'm not sure what that means, or why that affects it at all.. but obviously I want this value set to 'No' for the release version.
Upvotes: 6
Views: 2888
Reputation: 31
I had the same problem myself. Solution for me was my custom schemes had the wrong archive build configuration. They pointed to the default release scheme which I had removed and not my new live scheme. 'Your scheme' -> edit scheme.. -> Archive -> Build configuration
Upvotes: 3
Reputation: 209
I figured out the problem, all of the deployment targets need to be the same. That is, in the project file, the target, and the pods project as well.
Upvotes: 14