解决XCode编译错误clang: error: linker command failed with exit code 1
来源:互联网 发布:华为哪里下载软件 编辑:程序博客网 时间:2024/06/08 07:41
今天把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
- 解决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
- xcode编译时候出现clang: error: linker command failed with exit code 1 (use -v to see invocation)的解决方法
- duplicate symbol _OBJC--clang: error: linker command failed with exit code 1 错误
- 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)
- Apple Mach-O Linker Error clang: error: linker command failed with exit code 1
- XCODE错误总结:linker command failed with exit code 1
- 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)
- 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 报错clang- error- linker command failed with exit code 1 (use -v to see invocation)总结
- HDOJ 1281 - 棋盘游戏 快两年没写二分图匹配了~回顾下匈牙利
- volatile关键字
- VC++线程总结
- 2014年华为南研所校园招聘---机试+面试
- FFmpeg and x264 Encoding
- 解决XCode编译错误clang: error: linker command failed with exit code 1
- VC 2010 Express下安装OpenCV2.4.3
- linux c程序中获取shell脚本输出
- 分页 视图和控制器
- SVN的Not authorized to open root of edit operation解决办法
- lsof 使用方法
- [leetcode] Validate Binary Search Tree
- Linux 关机重启命令
- [Java][ibatis]条件SQL写法示例