【原】xcode5.0升级5.1遇到的clang: error: unknown argument: '-fobj-arc'错误
2014-05-10 20:23
681 查看
XCODE5.0升到XCODE5.1后LLVM也从5.0升到5.1,工程报下面的错误了:
从Xcode Release Notes找到说明
将target-build phases-中'-fobj-arc'改成'-fobjc-arc'。
clang: error: unknown argument: '-fobj-arc' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
从Xcode Release Notes找到说明
The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified. Projects using invalid compiler options will need to be changed to remove those options. To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning:
将target-build phases-中'-fobj-arc'改成'-fobjc-arc'。
相关文章推荐
- (已解决)Xcode 运行报错: clang: error: unknown argument: '-websockets'
- python lib 安装遇到报错clang: error: unknown argument: '-mno-fused-madd'
- mysql5.5升级为5.7遇到错误ERROR 1054 (42S22): Unknown column 'password_last_changed' in 'mysql.user'
- mysql5.5升级为5.7遇到错误ERROR 1054 (42S22): Unknown column 'password_last_changed' in 'mysql.user'
- MAC OSX 中解决编译“'cc' failed with exit status 1”错误 和clang: error: unknown argument 错误
- pip 在MAC上安装库错误clang: error: unknown argument
- mac下安装Crypto问题解决 clang: error: unknown argument: '-mno-fused-madd'
- 【OC易错】Xcode5.0新建OS X下的cmd工程后出现编译错误clang: error: invalid version number in '-mmacosx-version-min=
- 解决XCode编译错误clang: error: linker command failed with exit code 1
- xcode升级到6.0以后遇到的警告错误 原帖链接http://www.cocoachina.com/bbs/simple/?t112432.html
- iOS开展-clang: error: unknown argument: '-websockets'解决方案
- Xcode升级常常遇到警告错误的解决方法
- 使用Microsoft Update升级时遇到 Server Error 403 - Forbidden:Access is denied错误的解决办法
- xcode 升级到5.1后出现的错误和大量警告
- clang: error: unknown argument: '-mno-fused-madd
- 解决XCode编译错误clang: error: linker command failed with exit code 1
- clang: error: unknown argument: '-mno-fused-madd'
- MySQL数据库导入错误:ERROR 1064 (42000) 和 ERROR at line xx: Unknown command '\Z'.
- 修复Xcode升级错误 — PCH File Error
- 升级到Xcode 5.1和iOS 7遇到的各种问题及解决办法汇总: