错误如下: ld: can't link with a main executable file '/Users/chenjun/Library/Developer/Xcode/DerivedData/openLBS_ezoutdoor-ebzptezknnguwxhixhsonakocjbc/Build/Products/Release-iphoneos/openLBS_ezoutdoor.ap

方法一

毛病含义表示 指定的framework 不支持对 armv7s 的支持, 也就不支持搭载A6处理器的iPhone 5.

如果在编译framework或静态库的工程中照旧编译时,多是以下设置致使,设置为NO便可


错误如下: ld: can't link with a main executable file '/Users/chenjun/Library/Developer/Xcode/DerivedData/openLBS_ezoutdoor-ebzptezknnguwxhixhsonakocjbc/Build/Products/Release-iphoneos/openLBS_ezoutdoor.ap_第1张图片

方法二


如果这种办法还是无效,那就直接修改一下包名吧

错误如下: ld: can't link with a main executable file '/Users/chenjun/Library/Developer/Xcode/DerivedData/openLBS_ezoutdoor-ebzptezknnguwxhixhsonakocjbc/Build/Products/Release-iphoneos/openLBS_ezoutdoor.ap_第2张图片

方法三

在 target 下有个 test 工程,找到 General,然后会看到一个 testing ,在 testing 下有个 Allow testing Host Application APIs ,这好像是 Xcode7 才有的吧,它默认是勾上的,把勾去掉,然后编译就通过了



感谢:

https://www.v2ex.com/t/222838

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

http://blog.csdn.net/quanzheng92/article/details/42744939

你可能感兴趣的:(错误如下: ld: can't link with a main executable file '/Users/chenjun/Library/Developer/Xcode/DerivedData/openLBS_ezoutdoor-ebzptezknnguwxhixhsonakocjbc/Build/Products/Release-iphoneos/openLBS_ezoutdoor.ap)