xcode APPNAME没有iphone6+可以执行的架构
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27918385/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
APPNAME does not have an architecture that iphone6+ can execute
提问by Urkman
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:
但是,当我尝试在 iPhone (8.1.2) 上运行该应用程序时,出现此错误:
APPNAME does not have an architecture that iphone6+ can execute
APPNAME没有iphone6+可以执行的架构
My Target Setting are (Xcode 6.1.1):
我的目标设置是(Xcode 6.1.1):
Architectures = $(ARCHS_STANDARD)
VALID_ARCHS = arm64 armv7s armv7
架构 = $(ARCHS_STANDARD)
VALID_ARCHS = arm64 armv7s armv7
Another app with similar settings is running fine on the same iPhone...
另一个具有类似设置的应用程序在同一部 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
谢谢,乌克曼
回答by user4455646
This happened to me after I migrated a project to Xcode 6; the following resolved the issue for me:
在我将项目迁移到 Xcode 6 后,这发生在我身上;以下为我解决了这个问题:
From within Xcode 6, select the target, then
从 Xcode 6 中,选择目标,然后
- Select "Build Settings"
- Under the "Architectures" section, find "Supported Platforms"
- Change "iphoneos" (or whatever is currently entered there) to "iOS"
- 选择“构建设置”
- 在“架构”部分下,找到“支持的平台”
- 将“iphoneos”(或当前输入的任何内容)更改为“iOS”
回答by Nate23VT
I just did a project Clean (Shift+Command+K) and it seemed to resolve the issue.
我刚刚做了一个项目 Clean (Shift+Command+K),它似乎解决了这个问题。
回答by mylogon
This happened to me when I didn't notice the deployment target was set too high for the device. Try checking that the iOS version is =< to that of the device.
当我没有注意到部署目标为设备设置得太高时,这发生在我身上。尝试检查 iOS 版本是 =< 到设备的版本。