1
votes

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.

2
Unless you actually use the armv7s new instructions, you really don't need it at all. All it does otherwise is flag you in the store as "Optimized for iphone 5". It does increase the size of your binary. - ahwulf

2 Answers

2
votes

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

0
votes

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.