Reputation: 133
I am trying to build a static library on xcode 5 and i am aggregating the libraries for iphone simulator and iphone device for creating a framework. But, at the last i am getting error "No architectures to compile for (ARCHS=armv7, VALID_ARCHS=i386 x86_64)" while running the run script for framework.
I am trying to compile it for armv7 and armv7s both.
Please help me with this issue.
Upvotes: 1
Views: 8921
Reputation: 133
Solved the problem finally. In my case, i had some dependent project for my static library project. In the dependent project settings, the ARCH was armv7. I made that to 'Standard architectures (armv7, armv7s)' and it compiled successfully. For my static library project, the setting are as follows:
Architectures: Standard architectures (armv7, armv7s)
Base SDK: Latest iOS (iOS 7.0)
Build Active Architectures Only: NO
Supported Platforms: iphonesimulator iphoneos
Valid Architectures: arm64 armv7 armv7s i386
Upvotes: 2
Reputation: 11724
See What's the difference between "Architectures" and "Valid Architectures" in Xcode Build Settings? :
In short, XCode use intersection between ARCHS and VALID_ARCHS, which in your case is empty as the 2 have no common architecture (hence the error you get) Adding armv7 to VALID_ARCHS might solve the problem.
Upvotes: 0