【问题标题】:Swift compiler error on Xcode 6Xcode 6 上的 Swift 编译器错误
【发布时间】:2014-09-22 12:20:01
【问题描述】:

我在使用 Swift 编译器时遇到问题: 我在最新的 Xcode 6 上为 iOs 创建了新项目并尝试构建 - ViewController.swift 和 AppDelegate.swift 收到 2 个错误。

<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)
<unknown>:0: error: unable to execute command: Bus error: 10 
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)

如果有必要,我可以发布完整的日志。

我该怎么办?谢谢。

【问题讨论】:

  • 即使输入错误编译器也不应该崩溃。向 Apple 发送错误报告。
  • 我对 swift 或您的代码知之甚少(所以我不知道它们是否重复),但如果您搜索 Swift segmentation fault 11,则有 3 个 other 像您这样的问题,并且至少其中一个问题的答案显示了触发错误的语法错误。 (stackoverflow.com/questions/24222644/…)

标签: ios xcode macos swift compiler-errors


【解决方案1】:

我在处理 swift 项目时遇到了类似的问题。我在 Apple 支持网站上找到了 this。它说当您尝试访问不存在/无法访问的内存地址时会发生这种类型的错误。要解决此问题,您可以退出未使用的应用程序,甚至重新启动 Mac,这可能会对您有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-27
    • 1970-01-01
    • 1970-01-01
    • 2019-04-09
    • 2023-03-17
    • 1970-01-01
    相关资源
    最近更新 更多