Xcode 5 “Missing compiler spec LLVM 4.2” error

不想你离开。 提交于 2019-12-24 01:37:23

问题


I am currently trying to build my project in Xcode 5. Build fails with error:

Dependency Analysis Error: missing compiler specification <XCCompilerSpecification: Some memory address here :'com.apple.compilers.llvmgcc42':MISSING:Default> for file

for all code files in project.

The project used to be built in Xcode 4.6 with LLVM 4.2 and now Xcode 5 only supports LLVM 5. So there is obviously something related to that here.

I have set the build settings in Xcode 5 to use LLVM 5 and the build still fails for the same reason. Has anyone encountered this before and know how to stop Xcode 5 from looking for LLVM 4.2 which it no longer supports?

This question is as a result of iOS 6 vs 7 appearance build settings


回答1:


I found something similar in an old project I have today. What happened is that there was a subproject in my project and that one wasn't set to llvm5.

You may want to do a search in your directory to find a file specifying llvm 4.2, like such:

MyMac:~/path/to/my/project $ grep -rHin llvm *

MyProject.xcodeproj/project.pbxproj:334: GCC_VERSION = com.apple.compilers.llvmgcc42;
MyProject.xcodeproj/project.pbxproj:348: GCC_VERSION = com.apple.compilers.llvmgcc42;

If that's the case, try updating that subproject or removing it altogether, see if you can at least clean your build.

Hope this helps.




回答2:


I had a same problem and I found that under Project-> Build Rules, gcc compiler was being used which no longer exist with Xcode 5.




回答3:


first, if you use virtual machine, maybe it's the problem when it doesn't have grant to access into your project if not check your file Maybe you miss any file?



来源:https://stackoverflow.com/questions/19071688/xcode-5-missing-compiler-spec-llvm-4-2-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!