[英]iPhone 5S Specific Error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s)
My app uses a few libraries that are iPhone hardware specific and do not run on the simulator. 我的应用程序使用一些特定于iPhone硬件的库,并且不在模拟器上运行。 My app complies and runs fine on an iPhone 5 with iOS 7.1, iPod Touch 5G with iOS 7.0 and iPhone 4 with iOS 6.
我的应用程序符合并适用于配备iOS 7.1的iPhone 5,配备iOS 7.0的iPod Touch 5G和配备iOS 6的iPhone 4。
However, when I try to compile it to a specific iPhone 5S with iOS 7.1, I get the following error, which doesn't make much sense to me: 但是,当我尝试将其编译到具有iOS 7.1的特定iPhone 5S时,我收到以下错误,这对我来说没有多大意义:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=armv7 armv7s).
As a note, this works on other iPhone 5S's - it's just this specific. 作为一个注释,这适用于其他iPhone 5S - 它只是这个具体。
Have you tried looking at your project settings and making sure that under Architectures, Valid Architectures
includes arm64
? 您是否尝试查看项目设置并确保在体系结构,
Valid Architectures
包含arm64
? It looks like it's only including armv7
and armv7s
. 看起来它只包括
armv7
和armv7s
。 Make sure the architectures are included as such: 确保架构包含在内:
You may also decide to set Build Active Architecture Only
to No
so it can build regardless of what architecture you're connected to. 您也可以决定将
Build Active Architecture Only
设置为No
这样无论您连接到哪种架构,它都可以构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.