我有一个 iOS swift 程序,可以在 Xcode Beta2 上正常编译和运行。当我下载 beta4 时,我纠正了新的 swift 语言的一些语法错误。我现在收到此错误:
<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 以“查看调用”并进一步排除故障?没有这个,绝对没有办法找出问题所在。提前致谢。
最佳答案
以下是我找出问题所在的方法:
- 单击问题导航器中的问题(⌘ + 4,然后单击开头带有红色 ! 的行)
- 在出现的文件底部,应该有一行内容如下:
1。在发出 IR SIL 函数@_TToZFC4Down8Resource12getInstancesfMS0_U__FTSS6paramsGVSs10DictionarySSPSs9AnyObject__9onSuccessGSqFGSaQ__T__7onErrorGSqFT5errorCSo7NSError8responseGSqCSo17NSHTTPURLResponse__T___T_ for 'getInstances at/path/to/file.swift:5
/>
- 错误发生的位置在该行的末尾。 (在本例中,位于
getInstances
中 file.swift 的第 112 行)。
关于ios - 无法执行命令 : Segmentation fault: 11 swift frontend command failed due to signal (use -v to see invocation),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25007755/