没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386)

时间:2014-02-24 11:05:04

标签: objective-c

使用iphone模拟器64位时,我收到以下架构错误。还使用xcode 5.0。任何建议。

3 个答案:

答案 0 :(得分:65)

查看您的构建设置,检查设置Build Active Architecture Only是否设置为No(可能会使编译速度变慢但应该解决问题)

同时检查Valid Architectures列表中是否有arm64

请注意,如果您在提交应用时收到错误消息时说“包含arm64架构的应用需要同时包含armv7和armv7s架构”,则将其设置为“否”也会解决此问题

答案 1 :(得分:6)

您需要做的只是将ONLY_ACTIVE_ARCH设置为NO。希望它能奏效。

答案 2 :(得分:0)

enter image description here如果你在测试xcode项目上遇到错误然后删除它也解决了这个问题。

其他方式是todo

升级到XCode 5.1后,我收到了同样的错误消息。你在使用CocoaPods吗?如果是这样,这应解决问题:

Delete the "Pods" project from the workspace in the left pane of Xcode and close Xcode.
Run "pod install" from the command line to recreate the "Pods" project.
Re-open Xcode and make sure "Build Active Architecture Only" is set to "No" in the build settings of both the "Pods" project and your own project.
Clean and build.