Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APPNAME does not have an architecture that iphone6+ can execute

I'm working on a new app for some time now. I only tested it in the simulator up to today. Everything in the simulator was fine.

But when i try to run the app on my iPhone (8.1.2), i get this error:

APPNAME does not have an architecture that iphone6+ can execute

My Target Setting are (Xcode 6.1.1):

Architectures = $(ARCHS_STANDARD)

VALID_ARCHS = arm64 armv7s armv7

Another app with similar settings is running fine on the same iPhone...

I have already tried a lot of things found with google search, but nothing helps.

Is here somebody else with this problem?

Thanks, Urkman

like image 320
Urkman Avatar asked Jan 13 '15 09:01

Urkman


People also ask

What is arm64 architecture iOS?

arm64 is the current 64-bit ARM CPU architecture, as used since the iPhone 5S and later (6, 6S, SE and 7), the iPad Air, Air 2 and Pro, with the A7 and later chips. armv7s (a.k.a. Swift, not to be confused with the language of the same name), being used in Apple's A6 and A6X chips on iPhone 5, iPhone 5C and iPad 4.

How do I add architecture to Xcode?

In Project Settings, select "Standard" for the architecture (not "Optimized"). This should allow you to select "armv6" for the Active Architecture. This means it should also work on older devices (barring any other deprecations) once it's on the app store. Change your base SDK to iOS Device 4.


2 Answers

This happened to me after I migrated a project to Xcode 6; the following resolved the issue for me:

From within Xcode 6, select the target, then

  1. Select "Build Settings"
  2. Under the "Architectures" section, find "Supported Platforms"
  3. Change "iphoneos" (or whatever is currently entered there) to "iOS"
like image 128
user4455646 Avatar answered Nov 15 '22 17:11

user4455646


I just did a project Clean (Shift+Command+K) and it seemed to resolve the issue.

like image 39
Nate23VT Avatar answered Nov 15 '22 17:11

Nate23VT