ansonl
ansonl

Reputation: 786

Xcode 5 "Missing compiler spec LLVM 4.2" error

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

Upvotes: 2

Views: 1604

Answers (3)

NetDeveloper
NetDeveloper

Reputation: 519

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.

Upvotes: 3

Tuấn Nguy&#234;n
Tuấn Nguy&#234;n

Reputation: 35

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?

Upvotes: 0

Simon Germain
Simon Germain

Reputation: 6844

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.

Upvotes: 1

Related Questions