无法执行命令:分段错误:11 swift frontend command fai

unable to execute command: Segmentation fault: 11 swift frontend command failed due to signal (use -v to see invocation)(无法执行命令:分段错误:11 swift frontend command failed due to signal(使用 -v 查看调用))
本文介绍了无法执行命令:分段错误:11 swift frontend command failed due to signal(使用 -v 查看调用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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:

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

<代码>1.在发出 IR SIL 函数 @_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).

这篇关于无法执行命令:分段错误:11 swift frontend command failed due to signal(使用 -v 查看调用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Why local notification is not firing for UNCalendarNotificationTrigger(为什么没有为UNCalendarNotificationTrigger触发本地通知)
iOS VoiceOver functionality changes with Bundle Identifier(IOS画外音功能随捆绑包标识符而变化)
tabbar middle tab out of tabbar corner(选项卡栏中间的选项卡角外)
Pushing UIViewController above UITabBar(将UIView控制器推送到UITabBar上方)
Dropbox Files.download does not start when number of files in folder is gt; 1000(当文件夹中的文件数为1000时,Dropbox Files.Download不会启动)
How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)