最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【已解决】Xcode 9.1 beta版无法启动模拟器

Xcode crifan 522浏览 0评论

去下载了个Xcode 9.1 beta版:

解压后,放到程序中,结果启动后:

看不到模拟器:

搞得没法调试。

但是诡异的是:

实际上是可以调试代码的

但是就是模拟器无法显示出来。

不过此处是可以看到Simulator的列表的:

xcode 9 beta not see simulator

ios – xcode 9 doesn’t have any simulator device – Stack Overflow

ios11 – Can’t create new simulator in xcode 9 beta – Stack Overflow

ios – Unable to install app in simulator xcode 9 beta – Stack Overflow

然后去:

/Users/crifan/Library/Logs/CoreSimulator/CoreSimulator.com.apple.iphonesimulator.log

看到log是:

Sep 19 14:46:07 licrifandeMacBook-Pro com.apple.iphonesimulator[11602] <Error>: Error Domain=NSPOSIXErrorDomain Code=61 “Connection refused” UserInfo={NSLocalizedDescription=CoreSimulator.framework was changed while the process was running. This is not a supported configuration and can occur if Xcode.app was updated while the process was running. Service name ((null)) does not match expected service name (com.apple.CoreSimulator.CoreSimulatorService).}
Sep 19 14:46:07 licrifandeMacBook-Pro com.apple.iphonesimulator[11602] <Error>: Error Domain=NSPOSIXErrorDomain Code=61 “Connection refused” UserInfo={NSLocalizedDescription=CoreSimulator.framework was changed while the process was running. This is not a supported configuration and can occur if Xcode.app was updated while the process was running. Service name ((null)) does not match expected service name (com.apple.CoreSimulator.CoreSimulatorService).}
Sep 19 17:21:48 licrifandeMacBook-Pro com.apple.iphonesimulator[11602] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 19 17:21:48 licrifandeMacBook-Pro com.apple.iphonesimulator[11602] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 29 15:19:45 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error Domain=NSPOSIXErrorDomain Code=61 “Connection refused” UserInfo={NSLocalizedDescription=CoreSimulator.framework was changed while the process was running. This is not a supported configuration and can occur if Xcode.app was updated while the process was running. Service version (494.22.3) does not match expected service version (494.13.6).}
Sep 29 15:19:45 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error from finding pasteboard support port, Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 29 15:19:45 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 29 15:19:45 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error from finding pasteboard support port, Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 29 15:19:45 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error Domain=NSPOSIXErrorDomain Code=61 “Connection refused” UserInfo={NSLocalizedDescription=CoreSimulator.framework was changed while the process was running. This is not a supported configuration and can occur if Xcode.app was updated while the process was running. Service version (494.22.3) does not match expected service version (494.13.6).}
Sep 29 15:19:45 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 29 15:26:33 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 29 15:26:52 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}
Sep 29 15:26:52 licrifandeMacBook-Pro com.apple.iphonesimulator[297] <Error>: Error Domain=NSPOSIXErrorDomain Code=53 “Software caused connection abort” UserInfo={NSLocalizedDescription=Error returned in reply: Connection invalid}

但是搞笑的是:

重新试了几次Xcode和Simulator后,又可以看到了:

【总结】

此处,打开和重启Xcode和Simulator,多去试试几次,最后就可以:

Xcode 9.1 Beta,正常启动Simulator,继续正常调试了。

【后记】

后来,在本地已经是Xcode9.1beta的情况下,尝试通过AppStore更新Xcode 9.0,但是更新到最后,始终显示正在安装但是无法完成。

不过无意间发现,倒是可以看到simularots了:

所以,感觉还是Xcode 9.x的版本之间,没有兼容的很好的样子。

但是无论如何,现在可以看到模拟器,并且可以启动模拟器和调试了。

转载请注明:在路上 » 【已解决】Xcode 9.1 beta版无法启动模拟器

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
56 queries in 0.088 seconds, using 18.79MB memory