Reputation: 4097
Just upgraded to Xcode 5.1, getting the following error:
ignoring file ...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a, missing required architecture arm64 in file ...Dependencies/SalesforceNetworkSDK/libSalesforceNetworkSDK.a (3 slices)
If I turn off build active archs only and remove arm64 from valid archs I get:
Build/Products/Debug-iphoneos/libPods.a, file was built for archive which is not the architecture being linked (armv7)
Upvotes: 24
Views: 47732
Reputation: 12908
Don't know previous iOS but Setting Build Active Architecture Only to YES
in iOS 8 did the trick.
Upvotes: 8
Reputation: 669
I just changed the Debug from Yes to No,
Build Settings -> Architectures -> Build Active Architecture Only -> Debug -> NO.
This one fixed my error.
Upvotes: 2
Reputation: 17595
According to apple's release note, see the following note point.
Note:
Be aware of the following architectures issues when opening your existing projects in Xcode 5.1:
So you've to set architecture as below to support libs architecture.
Reference from this post.
Update: From May 15, you've to take build from 5.1.1, see this post.
Upvotes: 42
Reputation: 4097
I ended up getting my project to build by (1) turning off build active archs only (2) removing arm64 from valid archs and (3) making sure that the Pods project was building for only armv7 and armv7s.
Also worth noting here, that at the time of writing this edit, Salesforce mobile SDK was not available for arm64
Upvotes: 5