Xcode模拟器与Xcode断开连接,Xcode将不再显示Xcode控制台中的信息。然后Xcode提供了以下错误:“DTAssetProviderService无法使用模拟器'iPhone 6'启动DTXConnection。请检查系统日志中的错误。”
我已经尝试退出并重新启动模拟器和Xcode,但仍然没有运气。以下是系统日志错误:
Jun 25 15:49:34 --- last message repeated 1 time ---
Jun 25 15:49:34 Laurences-MBP diagnosticd[8123]: System mode client started - Console (8117) - mode: 0x8
Jun 25 15:49:48 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:49:53 --- last message repeated 1 time ---
Jun 25 15:49:53 Laurences-MBP cloudd[10528]: notify name "com.apple.cloudkit.pcs.flushCaches" has been registered 20 times - this may be a leak
Jun 25 15:50:05 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:50:05 Laurences-MBP syslogd[47]: ASL Sender Statistics
Jun 25 15:50:08 Laurences-MBP sandboxd[10550] ([318]): useractivityd(318) deny mach-lookup com.apple.PowerManagement.control
Jun 25 15:50:11 Laurences-MBP diagnosticd[8123]: System mode client started - Console (8117) - mode: 0x8
Jun 25 15:50:44 Laurences-MBP sandboxd[10550] ([10647]): lsd(10647) System Policy: deny system-privilege 1013
Jun 25 15:51:00 --- last message repeated 1 time ---
Jun 25 15:51:00 Laurences-MBP DTServiceHub[10677]: DTServiceHub[10677]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: Xcode[7692]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 25 15:51:09 Laurences-MBP Xcode[7692]: Xcode[7692]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
答案 0 :(得分:1)
您在macOS Sierra Beta上使用的Xcode 7.3.1不受支持。 XCode "DTAssetProviderService could not start.." error, How fix this?
中已经详细讨论了这个问题使用Xcode 8 beta或Xcode 7.3.1从Developer Portal https://developer.apple.com/download/more/下载的.dmg图像,它不会像Mac App Store版本那样出现此问题。