簡體   English   中英

Xcode 8.3中損壞的游樂場

[英]Playgrounds broken in Xcode 8.3

自從我開始使用Xcode 8.2(以及最近的8.3)以來,游樂場對我來說是完全崩潰了。

打開操場時,我看到消息“無法啟動過程。返回錯誤:連接中斷”

完全重新安裝Xcode或刪除/重新創建/ private / tmp文件夾(如其他一些帖子所述)無濟於事。

有人遇到過類似的問題嗎? 還有其他已知的解決方法嗎? http://www.openradar.me/31296836

這是CoreSimulator.log的一些示例輸出

Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:30 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error looking up host support port: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error from finding pasteboard support port, Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook CoreSimulatorService[5859] <Error>: Error Domain=com.apple.CoreSimulator.SimError Code=163 "Unable to lookup in current state: Shutting Down" UserInfo={NSLocalizedDescription=Unable to lookup in current state: Shutting Down}
Mar 28 16:19:40 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}
Mar 28 16:19:40 sergey-macbook com.apple.dt.Xcode[6955] <Error>: Error from finding pasteboard support port, Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedDescription=Error returned in reply: Connection interrupted}

Timing的創建者注意:從Timing 1.8.1和Timing 2.0開始不再出現此問題。

在MacBook上的Xcode 8.3.x中,iOS游樂場可以正常運行,但是MBP出現啟動模擬器錯誤。 MacBook是旅行用的,因此僅有少量應用程序。 特別是,它在狀態菜單欄中的應用程序圖標更少。

因此,在我的MBP上,我退出了所有不在MB上的那些文件,嘿,presto,操場跑了! 我一步一步地啟動了應用程序,正是Timing帶來了啟動模擬器錯誤-關閉菜單欄圖標再次修復了該問題,即使Timing應用程序本身仍在運行。

尤其不選擇時間; 可以是菜單欄中的任何快速訪問應用。

在此之前,我已經重新安裝了Sierra,但沒有全新安裝。 那將是下一步。

退出Xcode defaults write com.apple.dt.xcode IDEPlaygroundDisableSimulatorAlternateFramebuffer -bool YES后,蘋果工程師在終端下面的命令下運行時提供的解決方法, defaults write com.apple.dt.xcode IDEPlaygroundDisableSimulatorAlternateFramebuffer -bool YES

您是否嘗試過通過XCode刪除派生數據?

Shift+Alt+Command+K

或最快的方法是打開終端並超過以下條件:

rm -rf ~/Library/Developer/Xcode/DerivedData

另外,請確保沒有模擬器或其他版本的游樂場在后台運行。

(不幸的是)我通過全新安裝macOS解決了這個問題(當然,這不是解決問題的正確方法,但我需要盡快讓游樂場工作)。

tl; dr在檢查是否已安裝所有模擬器(在Xcode設置>組件中),關閉所有大量使用IBDesignable項目並重新啟動操場之后,我的問題消失了。


我不知道這是否有任何幫助,但最好將其發布。

我檢查的第一件事是我是否在Xcode中安裝了所有iOS模擬器。 令人驚訝的是,更新到Xcode 8.3還刪除了我的iOS 10.0模擬器; 重新安裝模擬器並重新打開Xcode。

之后在Google上進行搜索,發現了類似的問題

閱讀了問題之后,我記得我有另一個項目在打開,其中我大量使用IBDesignable進行測試。 關閉該項目並重新啟動操場解決了我的問題。

這可能與操場無關,但是確實解決了我的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM