Xcode 5“缺少编译器规范LLVM 4.2”错误 [英] Xcode 5 "Missing compiler spec LLVM 4.2" error

查看:136
本文介绍了Xcode 5“缺少编译器规范LLVM 4.2”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试在Xcode 5中构建我的项目。构建失败并出现错误:

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

依赖性分析错误:
缺少编译器规范< XCCompilerSpecification: 此处有一些内存地址 :'com.apple.compilers.llvmgcc42':MISSING:默认> for file

项目中的所有代码文件。

for all code files in project.

以前的项目使用LLVM 4.2在Xcode 4.6中构建,现在Xcode 5仅支持LLVM 5.因此,显然有一些与此相关的内容。

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.

我已将Xcode 5中的构建设置设置为使用LLVM 5,并且构建仍然因同样的原因而失败。有没有人遇到过这个问题并知道如何阻止Xcode 5查找它不再支持的LLVM 4.2?

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?

这个问题是由于iOS 6 vs 7外观构建设置

推荐答案

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

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.

您可能想在目录中搜索以查找文件指定llvm 4.2,如下所示:

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.

希望这有帮助。

这篇关于Xcode 5“缺少编译器规范LLVM 4.2”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆