问题描述
我有一个 iOS swift 程序,可以在 Xcode Beta2 上编译和运行良好.当我下载 beta4 时,我得到了一些新的 swift 语言的语法错误,我已经更正了.我现在收到此错误:
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:
- 在问题导航器中单击问题(⌘ + 4,然后单击开头带有红色 ! 的行)
- 在出现的文件的底部,应该有一行内容如下:
<代码>1.在发出 IR SIL 函数 @_TToZFC4Down8Resource12getInstancesfMS0_U__FTSS6paramsGVSs10DictionarySSPSs9AnyObject__9onSuccessGSqFGSaQ__T__7onErrorGSqFT5errorCSo7NSError8responseGSqCSo17NSHTTPURLResponse__T___T_ for 'getInstances' at/path/to/file.swift:112:5
- 发生错误的位置在该行的末尾.(在这种情况下,在
getInstances
中 file.swift 的第 112 行).
- The location where your error occurred is at the end of that line. (In this case, on line 112 of file.swift in
getInstances
).
这篇关于无法执行命令:分段错误:11 swift frontend command failed due to signal(使用 -v 查看调用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!