无法执行命令:分段错误:11 swift frontend命令由于信号失败(使用-v查看调用)

无法执行命令:分段错误:11 swift frontend命令由于信号失败(使用-v查看调用)

问题描述:

我有一个iOS快速程序,可以在Xcode Beta2上编译并运行良好.下载beta4时,我纠正了新的快速语言时遇到了一些语法错误.我现在收到此错误:

I have an iOS swift program that compiles and runs fine on Xcode Beta2. When I downloaded beta4, I got a few syntax errors for the new swift language which I corrected. I now get this error:

<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)

问题在于它不会告诉我该错误在哪里,以便我可以进一步对其进行故障排除.在哪里可以键入-v以便查看调用"并进行进一步的故障排除?没有这个,绝对没有办法解决问题.预先感谢.

The problem is that it does not tell me where this error is so that I can further troubleshoot it. Where can I type -v in order to "see the invocation" and troubleshoot further? Without this, there is absolute no way to figure out the problem. Thanks in advance.

这是我找出问题所在的方式:

Here's how I was able to find out what the problem was:

  1. 在问题导航器中单击问题(⌘+ 4,然后单击开头带有红色!的行)
  2. 在出现的文件的底部,应该有一行这样的内容:

1. While emitting IR SIL function @_TToZFC4Down8Resource12getInstancesfMS0_U__FTSS6paramsGVSs10DictionarySSPSs9AnyObject__9onSuccessGSqFGSaQ__T__7onErrorGSqFT5errorCSo7NSError8responseGSqCSo17NSHTTPURLResponse__T___T_ for 'getInstances' at /path/to/file.swift:112:5

  1. 发生错误的位置在该行的末尾. (在这种情况下,在getInstances中的file.swift的第112行上.)
  1. The location where your error occurred is at the end of that line. (In this case, on line 112 of file.swift in getInstances).