当前位置: 首页 > 工具软件 > app-version > 使用案例 >

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

公孙芷阳
2023-12-01

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。

 类似资料: