Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
389 views
in Technique[技术] by (71.8m points)

ios - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...