fmo*_*fmo 11 iphone xcode xcodebuild ios4 ios-simulator
项目在真实设备上构建并运行良好,但iphone模拟器的构建在此错误"llvm-gcc-4.2:error"中完成.有任何想法吗?
llvm-gcc-4.2: error trying to exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/../llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2': execvp: No such file or directory
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 255
Run Code Online (Sandbox Code Playgroud)
thx,Fabian
### XCode <4.3.2 ###
将XCode从4.2更新到4.3后,我遇到了很多"无关"错误的问题:
make[1]: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2: No such file or directory
Run Code Online (Sandbox Code Playgroud)
包括Command /Developer/usr/bin/clang failed with exit code 1
错误.
我修正了:
cd /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
ln -s llvm-gcc-4.2 gcc-4.2
Run Code Online (Sandbox Code Playgroud)
### XCode> = 4.3.2 <5.0 ###
将XCode更新为4.3.2之后,因为它现在是一个App(不再在/ Developer中).需要为模拟器和iOS设备执行以下步骤:
修复模拟器上的问题:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc-4.2
Run Code Online (Sandbox Code Playgroud)
修复iOS设备上的问题:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc
ln -s ../llvm-gcc-4.2/bin/llvm-gcc-4.2 gcc-4.2
Run Code Online (Sandbox Code Playgroud)
### XCode> = 5.0 ###(11/03/2014)
修复模拟器上的问题:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
ln -s /usr/bin/llvm-gcc gcc-4.2
Run Code Online (Sandbox Code Playgroud)
修复iOS设备上的问题:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
ln -s /usr/bin/llvm-gcc gcc-4.2
Run Code Online (Sandbox Code Playgroud)
当事情没有意义时,首先要做的是清理项目(产品/清洁).
另外,查看/Developer/Platforms/iPhoneSimulator.platform ...等,看看是否缺少目录或别名.同时打开目标"构建设置"并验证"搜索路径"下的路径.
这是我/ Developer/Platforms /的样子.