简体   繁体   中英

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

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:

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.

Have you tried looking at your project settings and making sure that under Architectures, Valid Architectures includes arm64 ? It looks like it's only including armv7 and 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM