Xcode 8 Beta - App Not Launching in Simulator

Version 8.0 beta (8S128d)


(PSA: before you run Xcode 8 make sure you BACKUP your projects. Xcode 8 changes Storyboard data versions. Once a Storyboard has been opened in Xcode 8, it cannot be opened Xcode 7!)


My universal app runs fine in Xcode 7, and is on the App Store.


I'm trying to run it in the 10.10 Simulator.


I've selected "iOS Simulators -> iPad Retina".


When I select "Run" from Xcode, it builds and tells me that it's running. The Simulator launches, shows the iPad home page, but nothing else. The interface is frozen.


In the Xcode 8 Beta Release Notes, it has this to say:

Booting an iOS 10.0 Simulator Device will result in a SpringBoard crash loop cycle.

Workaround: Use Simulator.app to boot the device. If that is not an option, you can stop the crash loop cycle by requesting that SpringBoard relaunch suspended:

simctl spawn booted launchctl debug system/com.apple.SpringBoard --start-suspended


So I performed this in Terminal:


xcrun simctl spawn booted launchctl debug system/com.apple.SpringBoard


Terminal spat out the following:


simctl[3860:60482] CoreSimulator is attempting to unload a stale CoreSimulatorService job. Detected Xcode.app relocation or CoreSimulatorService version change. Framework path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (209.19) does not match existing job path (/Applications/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version (260.5).

2016-06-14 13:51:12.526 simctl[3860:60482] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now.

No devices are booted.


Results: the iPad home page in the Simultor is still frozen. Pressing "Stop" in Xcode has no effect.


I've Restarted the machine. Rinsed, repeat, no good.


Any suggestions?


(At this point, there are so many problems with Xcode 8 and the 10.10 Simulators that I am forced to go back to Xcode 7 and 9.3 Simulators. I guess that's why they call it a beta...)


Is your Xcode app quarantined? That seems to cause apps to be AppTranslocated on 10.12.


You can check with:


xattr -p com.apple.quarantine /Applications/Xcode-beta.app


(Although I also see a "com.apple.quarantine" attribute on my copy of Xcode, which is working fine.)


Deleting the "com.apple.quarantine" attribute certainly wouldn't hurt:


xattr -d com.apple.quarantine /Applications/Xcode-beta.app

This workaround solved the "(null) was unable to service the request" issue for me. Thanks for sharing!

Apologies for not answering sooner, it is apparently, by Safari.


01e2;00000000;Safari;B0C029D7-2F09-48B1-BA08-3C3E4921DABF

For me the application was in the downloads folder. So i dragged the xcode8beta app to the applications folder and then it worked. I suspect that if people have it in the applications folder then drag it to some other folder and try it there and then drag it back to the applications folder to see if that works.

I do the following before switching Xcode:

launchctl remove com.apple.CoreSimulator.CoreSimulatorService


to fix such kind of issue:

CoreSimulator is attempting to unload a stale CoreSimulatorService job.  Detected Xcode.app relocation or CoreSimulatorService version change.  Framework path (/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (209.19) does not match existing job path (/Applications/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc/Contents/MacOS/com.apple.CoreSimulator.CoreSimulatorService) and version (260.5).
Xcode 8 Beta - App Not Launching in Simulator
 
 
Q