在Xcode 7 Beta 2上为架构'x86_64'选择了不受支持的编译器'com.apple.compilers.llvm.clang.1_0' [英] Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' on Xcode 7 Beta 2

查看:159
本文介绍了在Xcode 7 Beta 2上为架构'x86_64'选择了不受支持的编译器'com.apple.compilers.llvm.clang.1_0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在iOS中将流行的OAuth2库(称为 OAuth2Client )合并到在Xcode上开发的iOS应用中时7 Beta 2,然后尝试运行模拟器,发生以下错误并且模拟器没有启动。

When I incorporated a popular OAuth2 library in iOS called OAuth2Client to my iOS app which is developed on Xcode 7 Beta 2 and then tried running the simulator, the following error occurred and the simulator didn't launch.


不支持的编译器'com.apple为架构'x86_64'选择了.compilers.llvm.clang.1_0'。

Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64'

此错误是什么意思?许多警告(黄色三角形)后面是上面的错误(红色八边形),例如:

What does this error mean? A lot of warnings (yellow triangle) followed with the error above (red octagon), such as:


warning:没有规则可处理文件对于架构x86_64的'/Users/myUsername/myAppname/Pods/NXOAuth2Client/Sources/NSData+NXOAuth2.m'类型为sourcecode.c.objc

warning: no rule to process file '/Users/myUsername/myAppname/Pods/NXOAuth2Client/Sources/NSData+NXOAuth2.m' of type sourcecode.c.objc for architecture x86_64

如何处理这些错误并正确运行模拟器?还是CocoaPods仅在Xcode 7 Beta之前的环境上工作?

How can I deal with the these errors and run the simulator properly? Or does CocoaPods only work on environments prior to Xcode 7 Beta?

后来我发现这会发生在我创建的任何项目上,不仅在使用CocoaPods的项目上。出现的唯一线索是,当我今天将iTunes更新到12.2,然后启动我的Xcode时,弹出了对话框,指示安装新的命令行工具。

Later I found that this occurs on any projects I create, not only on a project using CocoaPods. The only clue that occurs to me is that when I updated my iTunes to 12.2 today and then launched my Xcode, the dialog popped up, instructing to install new command-line tools.

我刚刚升级到Xcode 7 Beta 3,但该错误仍然让我烦恼...

I just upgrade to Xcode 7 Beta 3 but the error still got me annoyed...

推荐答案

我在Xcode 7 beta 4上遇到了同样的问题。令人难以置信的是,重启Xcode挽救了我的一夜。您可以尝试一下。

I met the same issue on Xcode 7 beta 4. I have tried to clean the project for several times but with no lucky. Unbelievably, restart Xcode saved my night. You can try this.

这篇关于在Xcode 7 Beta 2上为架构'x86_64'选择了不受支持的编译器'com.apple.compilers.llvm.clang.1_0'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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