美文网首页
No architectures to compile for

No architectures to compile for

作者: 点呀点 | 来源:发表于2016-03-23 10:08 被阅读122次

今天测试一个iOS程序,运行的直接报错了,错误信息是:

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=arm64, VALID_ARCHS=arm32 armv7 armv7s).

解决方法
1,在Project target里“Architectures”设置为“Standard (armv7,armv7s)”
2,修改在Project target里“Build Settings”的“Valid Architectures”添加“i386”和“armv7”(Xcode4.6 以上版本不再支持armv6,请去掉)
3,设置”Build Active Architecture Only”为“NO”。这样你build你的项目的时候就能在iphone5和iphone4s里执行。

相关文章

网友评论

      本文标题:No architectures to compile for

      本文链接:https://www.haomeiwen.com/subject/somllttx.html