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

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

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

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

简单说下方法:

1. 选中你的项目

2. 然后选中你的测试target

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

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

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

二、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

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

上一篇:Flask 接入第三方云通讯平台时出现 {‘172001’:’网络错误’}


下一篇:二十二、android中application标签说明