2

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

4

3 回答 3

3

我遇到了同样的问题,我发现在 Project-> Build Rules 下,正在使用 gcc 编译器,而 Xcode 5 不再存在。

于 2013-10-01T12:48:56.967 回答
1

我在今天的一个旧项目中发现了类似的东西。发生的事情是我的项目中有一个子项目,并且没有设置为 llvm5。

您可能希望在您的目录中进行搜索以找到指定 llvm 4.2 的文件,如下所示:

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;

如果是这种情况,请尝试更新该子项目或完全删除它,看看您是否至少可以清理您的构建。

希望这可以帮助。

于 2013-09-29T14:26:29.267 回答
0

首先,如果您使用虚拟机,如果不检查您的文件,它可能没有权限访问您的项目,这可能是问题也许您错过了任何文件?

于 2013-09-30T09:15:30.530 回答