簡體   English   中英

iOS模擬器僅顯示空白屏幕

[英]iOS Simulator showing only blank screen

我已經將少數Macmini升級到El Capitan 10.11.2,並安裝了Xcode 7.1。 但是iOS模擬器顯示了一些問題。 就像Xcode 7.1的默認iOS是9.1,當我從SDK 9.1在iOS模擬器中啟動任何設備時,它只會顯示黑屏。

因此要檢查,我去了Xcode> Preferences並下載了SDK 9.0和8.4。 當我從SDK 9.0或8.4切換到任何設備時,它們都可以正常工作。 但是我不知道默認的SDK 9.1是怎么回事。

我在下面嘗試了一些方法來解決此問題。

  1. 重新安裝Xcode。
  2. 重置設備內容。
  3. 刪除了設備文件夾,並在SDK 9.1下再次創建了設備。
  4. 刪除並使用正確的權限重新創建/ private / tmp /。
  5. 多一點。

他們都沒有工作。

當我切換到SDK 9.1下的任何設備時,我已經很好地粘貼了CoreSimulator.log的一些日志。

CoreSimulator.log

Jan 10 21:45:21  CoreSimulatorService[331] : Error looking up host support port
Jan 10 21:45:21  CoreSimulatorService[331] : Error Domain=com.apple.CoreSimulator.SimError Code=159 "Invalid device state" UserInfo={NSLocalizedDescription=Invalid device state}
Jan 10 21:45:21  CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21  CoreSimulatorService[331] : Error looking up host support port
Jan 10 21:45:21  CoreSimulatorService[331] : Error Domain=com.apple.CoreSimulator.SimError Code=159 "Invalid device state" UserInfo={NSLocalizedDescription=Invalid device state}
Jan 10 21:45:21  CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21  CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21  CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21  CoreSimulatorService[331] : Error Domain=NSPOSIXErrorDomain Code=3 "No such process"
Jan 10 21:45:21  com.apple.iphonesimulator[447] : Error looking up host support port
Jan 10 21:45:21  com.apple.iphonesimulator[447] : Error looking up host support port
Jan 10 21:45:21  com.apple.iphonesimulator[447] : Error looking up host support port

Simulator.log文件

Jan 10 20:56:58  Simulator[381] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 20:56:58  Simulator[381] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 20:59:39  Simulator[416] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 20:59:39  Simulator[416] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:00:21  Simulator[429] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:00:21  Simulator[429] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:02:45  Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:02:45  Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:14:06  Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:14:06  Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:45:21  Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge
Jan 10 21:45:21  Simulator[447] : Error communicating with SimulatorBridge: NSObjectNotAvailableException - Unable to connect to SimulatorBridge

退出xcode並殺死pid,然后關閉並退出模擬器。 再次午餐xcode並轉到窗口-> divices->刪除所有設備並重新添加它,它將起作用。

暫無
暫無

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

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