解决XCode编译错误clang: error: linker command failed with exit code 1
2013-08-19 14:33
375 查看
今天把XCode4.5.1升级为XCode4.6.1,然后调试接了一台iPhone4,一台iPhone5,(原来只用iPhone4开发)
选择iPhone4可以成功编译;
但iPhone5编译出现以下错误:clang: error: linker command failed with exit code 1 (use -v to see invocation)
网上找了好久解决方法,以下方法我可以编译成功,但我也不是很懂有什么影响,请高手指导。(QQ:274010315)
一、
把 Valid Architectures 的值改为 armv7
过程:
PROJECT --> Build Settings --> Architectures --> Valid Architectures 他的值本来是 armv7 armv7s ,把armv7s 去掉即可
同样的操作
TARGETS --> Build Settings --> Architectures --> Valid Architectures 做同样的修改
二、
以上修改如果还不行,继续
PROJECT --> Build Settings --> Architectures -->Build Active Architecture Only的值改变No
同样操作
TARGETS --> Build Settings --> Architectures -->Build Active Architecture Only的值改变No
参考:
http://blog.csdn.net/like7xiaoben/article/details/8133744 http://blog.csdn.net/h_o_w_e/article/details/8239533 http://blog.csdn.net/duxinfeng2010/article/details/8265273 http://www.cnblogs.com/Rampage/archive/2012/04/27/2473070.html
选择iPhone4可以成功编译;
但iPhone5编译出现以下错误:clang: error: linker command failed with exit code 1 (use -v to see invocation)
网上找了好久解决方法,以下方法我可以编译成功,但我也不是很懂有什么影响,请高手指导。(QQ:274010315)
一、
把 Valid Architectures 的值改为 armv7
过程:
PROJECT --> Build Settings --> Architectures --> Valid Architectures 他的值本来是 armv7 armv7s ,把armv7s 去掉即可
同样的操作
TARGETS --> Build Settings --> Architectures --> Valid Architectures 做同样的修改
二、
以上修改如果还不行,继续
PROJECT --> Build Settings --> Architectures -->Build Active Architecture Only的值改变No
同样操作
TARGETS --> Build Settings --> Architectures -->Build Active Architecture Only的值改变No
参考:
http://blog.csdn.net/like7xiaoben/article/details/8133744 http://blog.csdn.net/h_o_w_e/article/details/8239533 http://blog.csdn.net/duxinfeng2010/article/details/8265273 http://www.cnblogs.com/Rampage/archive/2012/04/27/2473070.html
相关文章推荐
- 解决XCode编译错误clang: error: linker command failed with exit code 1
- 解决XCode编译错误clang: error: linker command failed with exit code 1
- 解决XCode编译错误clang: error: linker command failed with exit code 1
- 解决XCode编译异常clang: error: linker command failed with exit code 1
- 解决XCode编译异常clang: error: linker command failed with exit code 1
- 解决XCode编译异常clang: error: linker command failed with exit code 1
- xcode编译时候出现clang: error: linker command failed with exit code 1 (use -v to see invocation)的解决方法
- iOS开发中Xcode编译错误 linker command failed with exit code 1 (use -v to see invocation) 的解决办法
- iOS开发-Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)
- Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)
- Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)
- Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)
- clang: error: linker command failed with exit code 1 (use -v to see invocation) 解决办法
- ios clang: error: linker command failed with exit code 1 (use -v to see invocation)解决方法
- Xcode编译时出现这样的情况:error: linker command failed with exit code 1 (use -v to see invocatio
- "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:和clang: error: linker command failed with exit code 1 (use -v to see invocation)错误
- 出现:clang: error: linker command failed with exit code 1 (use -v to see invocation),解决方法
- clang: error: linker command failed with exit code 1 (use -v to see invocation)解决方法
- IOS如何解决烦人的“clang: error: linker command failed with exit code 1 (use -v to see invocation)”问题
- Xcode 报错clang- error- linker command failed with exit code 1 (use -v to see invocation)总结