user1529412
user1529412

Reputation: 3766

No architectures to compile for Xcode 6.1

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:

enter image description here

enter image description here

Upvotes: 3

Views: 3183

Answers (3)

Harri H
Harri H

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

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

Reputation: 23651

I suggest that you do the following:

  1. Delete local modifications to valid architectures such that it returns to default values.
  2. Delete local modifications to architectures such that it returns to default values.
  3. Make sure that your deployment target is at least 6.0. Setting it to a version older than 6.0 will not allow you to support 64bit.

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

dogsgod
dogsgod

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

Related Questions