macOS Sierra and Xcode 7 - DTAssetProviderService could not start DTXConnection

Since the update to macOS Sierra, running apps on the simulator with the latest public release of Xcode (7.3.1) it is not possible anymore. While the apps install fine on the simulator the connection to enable debuggind and the automatic attach to the process fails with the following error:


DTAssetProviderService could not start DTXConnection


From logs I can see the following witch seem relevant to the matter:


Jun 15 21:42:52 xxxx DTServiceHub[31777]: DTServiceHub[31777]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)

Jun 15 21:42:52 xxxx sandboxd[177] ([340]): useractivityd(340) deny mach-lookup com.apple.PowerManagement.control

Jun 15 21:43:02 xxxx sandboxd[177] ([31006]): ***(31006) System Policy: deny system-privilege 1013

Jun 15 21:43:02 xxxx Xcode[30919]: Xcode[30919]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)

Jun 15 21:43:02 xxxx Xcode[30919]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'

Jun 15 21:43:02 xxxx Xcode[30919]: Xcode[30919]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)


Jun 15 21:48:52 xxxx Xcode[30919]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'

Jun 15 21:48:52 xxxx Xcode[30919]: Xcode[30919]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)

Does anyone knows for a solution for making this work? Besides rolling back to El Capitan...

same boat! - i can build to device, but no longer to simulators. I've tried removing and re-adding simulators with no luck as well.

Same problem.

I add the same exact issue but manage to fix it.


I have just redownload and installed XCODE 7.3.1:

https://developer.apple.com/downloads/


It worked for me.


Good luck!

This is the correct answer !!! ^^

This does not work for everyone. I've tried it, and it did nothing.

Unfortunately this didn't work for me.

Ditto here.. same error message:


DTServiceHub[13193]: DTServiceHub[13193]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)


followed later by:


Xcode[12821]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'



Blowing away all Xcode preferences/caches/other folders & reinstalling doesn't help.

Update: Did a fresh install of Sierra, installed Xcode from the App Store, created a sample one view project, and tried to run the app on the simulator, same result. So this should be very easy for Apple to repro.

I want to echo mikeydsg. Installed MacOS Sierra and get the same messages running XCode 7.3

Having the same issue! Has anyone gotten a working solution to this?

See this answer. That helped me.

This problem may cause by Xcode and simulator's connection. Here is a solution. http://stackoverflow.com/questions/37887147/dtassetproviderservice-could-not-start-dtxconnection-with-simulator-mac-os-sie

macOS Sierra and Xcode 7 - DTAssetProviderService could not start DTXConnection
 
 
Q