2016-09-26 24 views
2

我遷移到雨燕3.0,並保持橫過分割故障11來:分段錯誤11與Obj-C-bridge.h有關嗎?

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler 
    cd "/Users/kekearif/Documents/MyApp/MyApp Dev/ios-app" 
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk 
    export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name SA_Dev -Onone -D COCOAPODS -DDEV -DDEBUG -sdk /......./MyApp\ DEV.build/Objects-normal/arm64/SA_Dev-Swift.h -import-objc-header /Users/kekearif/Documents/MyApp/MyApp\ Dev/ios-app/MyApp/Obj-C-bridge.h -Xcc -working-directory/Users/kekearif/Documents/MyApp/MyApp\ Dev/ios-app 

<unknown>:0: error: unable to execute command: Segmentation fault: 11 
<unknown>:0: error: compile command failed due to signal (use -v to see invocation) 
<unknown>:0: error: unable to execute command: Segmentation fault: 11 
<unknown>:0: error: compile command failed due to signal (use -v to see invocation) 
<unknown>:0: error: unable to execute command: Segmentation fault: 11 
<unknown>:0: error: compile command failed due to signal (use -v to see invocation) 
<unknown>:0: error: unable to execute command: Segmentation fault: 11 
<unknown>:0: error: compile command failed due to signal (use -v to see invocation) 

長路徑結尾:

SA_Dev-Swift.h -import-objc-header /Users/kekearif/Documents/MyApp/MyApp\ Dev/ios-app/MyApp/Obj-C-bridge.h -Xcc -working-directory/Users/kekearif/Documents/MyApp/MyApp\ Dev/ios-app

這可能是一個問題與我的任Obj-C-bridge.h或豆莢?

回答

2

這是SWIFT編譯器中的一個錯誤,Apple需要解決這個錯誤。你應該給蘋果公司report

在Apple解決了這個問題之前,您應該嘗試隔離觸發錯誤的部分,然後進行一些更改以避免觸發錯誤。有時,改變一些東西的順序或改變空白就足夠了。有時候,您必須刪除觸發代碼並用替代實現替換它。

是的,開始的地方是Obj-C-bridge.h。刪除所有內容,然後開始逐件添加,直到找到觸發代碼或行。

+0

在我的情況下,XCODE基本上不會在更改文件時進行任何錯誤突出顯示。儘管我可以看到一些Buildtime問題,但在左側面板中。我通過他們工作併到達最後一個。如果我做出任何改變,甚至刪除代碼最終在seg錯誤。 – KexAri

+0

這肯定會是一個非常麻煩的調查。由於網橋文件受到影響,因此每次您進行更改以隔離問題時,基本上都需要重新構建整個項目。由於橋文件中被刪除的行會影響很多其他代碼,因此很難找到切入所有錯誤並檢查編譯器是否崩潰的情況,這是目前唯一的相關錯誤。 – Codo

+0

什麼是惡夢。謝謝你的建議。 – KexAri