码迷,mamicode.com
首页 > 其他好文 > 详细

ld can't link with a main executable file for architecture armv7

时间:2015-09-08 15:24:15      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:

在iPhone 6 Plus上跑的时候遇到了这么一个错误:ld can‘t link with a main executable file for architecture armv7,然后就各种改啊改啊,因为我明明已经把arm64加入了豪华午餐阵容了呀,为啥还提示我不允许在64位处理器上跑啊?这不科学!

然后就是各种Google呗,唔,搜到了两个解决方案:

一、 http://stackoverflow.com/questions/26031932/cant-link-with-a-main-executable-file

简单说下方法:

1. 选中你的项目

2. 然后选中你的测试target

技术分享

3. 将右边的Host Application设置为你的项目名

技术分享

二、http://blog.csdn.net/ggbb190/article/details/41701343

如果上面那个还不行,你可以参考这个,将Architectures下,Build Active Architecture Only选项,设置为no

技术分享

然后重新清理一下,再次运行就可以了。

ld can't link with a main executable file for architecture armv7

标签:

原文地址:http://www.cnblogs.com/wskgjmhh/p/4791560.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!