GM发布的Xcode 6编译 [英] GM release of Xcode 6 compile

查看:77
本文介绍了GM发布的Xcode 6编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Xcode 6的GM版本,它将无法编译并出现此错误:

I just downloaded the GM release of Xcode 6 and it won't compile with this error:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

有关如何解决此问题的任何想法?

Any ideas on how to fix this?

推荐答案

此错误可能由于多种原因而发生,因此这意味着调试提示。您可能想尝试在命令行中使用 xcodebuild 。它将为您提供有关哪些文件是罪魁祸首的详细信息。

This error can happen for numerous reasons, so this is meant to be a debugging hint. You may want to try using xcodebuild in the command line. It will give you details as to what files are the culprits.

要执行此操作,请打开终端并转到项目文件夹。在那里,键入

To do this, open Terminal and go to your project folder. Once there, type in

xcodebuild -project YourProject.xcodeproj -scheme YourScheme

或者如果你在工作区工作

or if you're working in a workspace

xcodebuild -workspace YourProject.xcworkspace -scheme YourScheme

您可能会看到很多消息弹出,但是在输出的最后,您应该看到导致崩溃的特定文件。回到XCode,进入这些文件并开始使用一些Swift语法来查看正在发生的事情。在我的情况下,它与setAttributeString函数有关,但我看到其他人有问题!和?

You may see A LOT of messages pop up, but at the very end of the output you should see the specific files that are causing the crash. Back in XCode, go into those files and start playing with some of the Swift syntax to see what's going on. In my case, it had to do with the setAttributeString function, but I've seen other people have issues with ! and ?.

希望这会让你朝着正确的方向前进。

Hopefully that will get you headed in the right direction.

这篇关于GM发布的Xcode 6编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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