[英]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是怎么回事。
我在下面尝试了一些方法来解决此问题。
他们都没有工作。
当我切换到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.