2014-09-22 124 views
0

我在Swift Compiler中遇到問題: 我在最新的Xcode 6上爲iOs創建了新項目,並試圖構建 - 通過ViewController.swift和AppDelegate.swift收到2個錯誤。Xcode 6上的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) 
<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) 

如果需要,我可以發佈完整日誌。

我該怎麼辦?謝謝。

+2

即使輸入錯誤,編譯器也不應該崩潰。向Apple發送錯誤報告。 – 2014-09-22 12:30:06

+0

我不太瞭解swift或你的代碼(所以我不知道它們是否重複),但是如果你搜索'Swift segmentation fault 11',那麼就有3 *個其他類似的問題,並且至少有一個其中的一個答案顯示觸發故障的語法錯誤。 (http://stackoverflow.com/questions/24222644/swift-compiler-segmentation-fault-when-building) – 2015-01-20 12:35:36

回答

0

我在使用swift項目時遇到過類似的問題。我在Apple支持網站上找到了this。它表示,當您嘗試訪問不存在/不可訪問的內存地址時,會發生此類錯誤。要解決此問題,您可以退出未使用的應用程序,甚至重新啓動可能對您有幫助的mac。