Xcode 5.1 - 没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active 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)
问题描述
更新到 Xcode 5.1 后,我无法再为 64 位模拟器构建我的项目,收到此错误:
After updating to Xcode 5.1, I can no longer build my project for the 64-bit simulator, receiving this error:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
这些是我的目标构建设置:
These are my target build settings:
我尝试将Build Active Architecture"更改为No",并将i386"添加到Valid Architectures",但不幸的是两者都不起作用.感谢您的任何建议!
I tried changing "Build Active Architecture" to No, as well as adding "i386" to the "Valid Architectures", unfortunately neither worked. Thanks for any suggestions!
推荐答案
升级到 XCode 5.1 后,我遇到了同样的错误消息.你在使用 CocoaPods 吗?如果是这样,这应该可以解决问题:
I had the same error message after upgrading to XCode 5.1. Are you using CocoaPods? If so, this should fix the problem:
- 从 Xcode 左窗格中的工作区中删除Pods"项目并关闭 Xcode.
- 从命令行运行pod install"以重新创建Pods"项目.
- 重新打开 Xcode 并确保在Pods"项目和您自己的项目的构建设置中将仅构建活动架构"设置为否".
- 清理和构建.
这篇关于Xcode 5.1 - 没有要编译的架构(ONLY_ACTIVE_ARCH=YES,active arch=x86_64,VALID_ARCHS=i386)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!