【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。
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。
相关文章推荐
- Xcode 5.x: clang: error: invalid version number in '-mmacosx-version-min=11.0'
- xcode新建工程时出现fatal: unable to auto-detect email address (got 'Rabstone@bogon.(none)')错误
- 【OC错误】:fatal error: file '/Applications/Xcode 2.app/Contents/Developer/Platforms/MacOSX.platform/Dev
- MySQL 编译出现 error: 'SSL_OP_NO_COMPRESSION' undeclared (first use in this function) 错误
- 测试 今天在导入一个工程时,编译并打包到Tomcat后,发现出现java.lang.UnsupportedClassVersionError: Bad version number in .class
- rapidxml 在mac下的编译error: call to function 'print_pi_node' that is neither visible in the template def
- GCC编译错误:error: 'for' loop initial declarations are only allowed in C99 mode
- 有关TypeError: invalid 'in' operand obj的错误
- 使用ant编译Java编程思想出现时 java.lang.UnsupportedClassVersionError: Bad version number in .class问题
- 【Cocos2d-x】编译Android工程时提示error: 'GL_LINE_SMOOTH' was not declared in this scope
- 【cocos2d-x 报错异常集】运行安卓虚拟机的时候出现了emulator: ERROR: Can't find 'Linux version ' string in kernel image fi
- java编译中出现了Exception in thread “main" java.lang.UnsupportedClassVersionError
- python安装软件出现错误 fatal error: 'libxml/xmlversion.h' file not found
- ndk编译错误:error: 'nullptr' was not declared in this scope
- linux 内核编译出现:cc1: error: invalid option `abi=aapcs-linux'
- 编译工程时出现异常“[Error] File not found: 'DIALOG.RES'”怎么解决
- 昨天的错误修改后,make出现error: 'UINT64_C' was not declared in this scope
- gcc 4.3.2 编译时 发生 error: redeclaration of C++ built-in type 'bool' 错误
- 驱动工程中添加新文件后出现的“cannot open source file '***.tmh'"编译错误
- 升级Xcode7后,旧工程编译出现directory not found for option '-F...错误