Reputation: 3766
I am running xcode 6.1
I am upgrading a project that was originally targeted to 4.3 to latest iOS and SDKs. When I run against simulator, it compiles fine against all simulators less than iPhone 5S, it works on iPhone4,4S, iphone5 both (7 & 8). However When I select devices iPhone 5S and iPhone 6, I get the error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
Settings:
Upvotes: 3
Views: 3183
Reputation: 1
I had to manually remove overwritten VALID_ARCH settings from the project file to get it to build simulator. For whatever reason if you overwrite them at target level it doesn't work (for me at least) and you can't remove them in Xcode as it replaces them with empty instead of inheriting them from project settings.
Upvotes: 0
Reputation: 23651
I suggest that you do the following:
The default architecture values will just show arm archs. You don't need to include i386 and x86_64. Xcode takes care of translating your arm archs to appropriate intel archs when building for the sim. For example, if you have armv6, armv7, or armv7s in valid archs or archs, that will be internally translated to i386 when building for the sim.
Upvotes: 0
Reputation: 6387
Your valid architectures should read armvv7, armv7s, arm64
Otherwise you do not allow (at least) arm64.
You also do not need to make a difference between debug & release when that is the same
Upvotes: 7