objective-c 没有要编译的架构 (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21985909/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 21:11:56  来源:igfitidea点击:

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)

objective-c

提问by RajMac

While using the iphone simulator 64 bit, i'm getting the following architecture error. Also using the xcode 5.0. Any suggestions.

在使用 64 位 iphone 模拟器时,我收到以下架构错误。同样使用 xcode 5.0。有什么建议。

回答by Fonix

have a look under your build settings, check that the setting Build Active Architecture Onlyis set to No(might make compiling a bit slower but should fix the problem)

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

Also check that the Valid Architectureshas arm64 in the list

还要检查Valid Architectures列表中是否有 arm64

Note if you are getting an error when submitting an app saying "Apps that include an arm64 architecture are required to include both armv7 and armv7s architectures”, setting it to No will also fix this

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

回答by prema janoti

What you need to do is just set the ONLY_ACTIVE_ARCHto NO. Hope it will work.

你需要做的仅仅是设置ONLY_ACTIVE_ARCHNO。希望它会起作用。

回答by bLacK hoLE

enter image description hereif you getting error on test xcode project then delete it also resolved this problem.

在此处输入图片说明如果您在测试 xcode 项目上出错,则删除它也解决了这个问题。

other way is todo

另一种方式是待办事项

I had the same error message after upgrading to XCode 5.1. Are you using CocoaPods? If so, this should fix the problem:

升级到 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.