简体   繁体   English

iPhone 5S特定错误:没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = arm64,VALID_ARCHS = armv7 armv7s)

[英]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 . 看起来它只包括armv7armv7s 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.

相关问题 Xcode 12 - 没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=arm64e armv7s arm64 arm7) - Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7) 没有要编译的架构 (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64) Xcode 12 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64) Xcode 12 没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = armv7,VALID_ARCHS = armv6 i386) - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6 i386) 检查依赖项...没有要编译的体系结构(ARCHS = i386,VALID_ARCHS = arm64 armv7s armv7) - Check dependencies… No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7s armv7) 没有要编译的架构(ARCHS = i386,VALID_ARCHS = arm64 armv7 armv7s) - No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s) 没有要编译的架构(ARCHS = armv7,armv7s,VALID_ARCHS = armv7 armv7s) - No architectures to compile for (ARCHS=armv7,armv7s, VALID_ARCHS=armv7 armv7s) Xcode 9没有要编译的体系结构(ARCHS = arm64,VALID_ARCHS = armv6 armv7) - Xcode 9 No architectures to compile for (ARCHS=arm64, VALID_ARCHS=armv6 armv7) 没有要编译的架构 (ARCHS=, VALID_ARCHS=armv7 armv7s) - No architectures to compile for (ARCHS=, VALID_ARCHS=armv7 armv7s) Xcode 5.1 - 没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386) - Xcode 5.1 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386) 错误“ ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386” - an error “ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM