您的位置:首页 > 其它

【OC易错】Xcode5.0新建OS X下的cmd工程后出现编译错误clang: error: invalid version number in '-mmacosx-version-min=

2015-04-26 19:39 701 查看
1、Xcode5.0新建OS X下的cmd工程后,点击运行按钮 ,会立马出现编译错误:

warning:OS X deployment target '11.0' for architecture 'x86_64' and variant 'normal' is greater than the maximum value '10.8' for the OS X 10.8 SDK.
lang: error:invalid version number in '-mmacosx-version-min=11.0'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

2、重新下载一个5.1.1版本的之后,就可以编译通过了,应该是 下载的那个Xcode版本 有bug。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐