首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装iOS和Xcode 8之后,macOS模拟器将无法使用Xcode 7.3.1

安装iOS和Xcode 8之后,macOS模拟器将无法使用Xcode 7.3.1
EN

Stack Overflow用户
提问于 2016-06-15 00:50:42
回答 3查看 1.7K关注 0票数 4

安装macOS塞拉利昂+ Xcode 8测试版后

我的Xcode 7.3.1不能再运行iOS模拟器了,

我怎么才能修好这个?

这是系统日志。

代码语言:javascript
运行
复制
Jun 15 07:46:11 Siams-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.CoreSimulator.CoreSimulatorService[2246]): Service exited due to signal: Killed: 9 sent by com.apple.CoreSimulator.CoreSimu[2246]
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: com.apple.CoreSimulator.CoreSimulatorService 209.19 starting.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device D340C405-CF9F-482C-82CE-ADE8A2399529 is no longer in the set, and an alternative could not be found.  iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device C3CBAFAD-D139-49CE-9EF1-E2437A2349A7 is no longer in the set, and an alternative could not be found.  iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 0916CCBC-1DAA-4CA4-8DCA-FFD87C8941E0 is no longer in the set, and an alternative could not be found.  iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 9CC780B5-3034-4083-B52F-2354FB0A8252 is no longer in the set, and an alternative could not be found.  iPhone / Watch pairings may not be correct.

另一根原木

代码语言:javascript
运行
复制
Jun 15 10:03:26 Siams-MacBook-Pro DTServiceHub[11482]: DTServiceHub[11482]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: Xcode[10188]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
EN

回答 3

Stack Overflow用户

发布于 2016-06-17 18:16:29

短期解决方案:

  • 构建应用程序
  • 即使出现错误,该应用程序仍将安装在模拟器上。
  • 在模拟器上手动启动应用程序
  • 转到Xcode
  • 单击Debug >附加到Process >您的应用程序名称

这是不推荐的,因为你必须这样做,每次你想运行你的应用程序。

长期解决方案(推荐):

从开发人员中心重新安装Xcode。这样做将清除此错误,应用程序将顺利运行。

票数 1
EN

Stack Overflow用户

发布于 2016-06-17 05:38:32

这应该能行。

  1. 构建应用程序
  2. 即使出现错误,该应用程序仍将安装在模拟器上。
  3. 在模拟器上手动启动应用程序
  4. 转到Xcode
  5. 单击Debug >附加到Process >您的应用程序名称
票数 0
EN

Stack Overflow用户

发布于 2016-06-20 12:10:53

我通过删除XCode 7.3.1和8 Beta并重新安装DMG中的 XCode 7.3.1来解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37824434

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档