Launching iPad sim in Xcode 7 shows "Unable to boot device because it cannot be located on disk"

When my test automation harness under Xcode 7 tries to launch any iPad simulator (have tried several, with both 8.4 and 9.0), it shows the sim window and then fails with "Unable to boot device because it cannot be located on disk". Launching the iPhone sims works fine.


Just this command to launch the sim shows the error:

instruments -t Automation -w {ID}


If I delete that device from Xcode 7 and recreate it, then that command works, but once my script goes and deletes the old app, installs the new one, and tries to launch, the same error comes up and then that basic command will also fail


Watching the CoreSimulator/Devices folder, my script deletes the {ID} folder and then launches the sim. For the iPhone sims, the folder gets re-created, the app gets copied into, etc. But for the iPad sims, the folder does not get re-created, which is then the source of the failure message -- literally, the device folder isn't on disk any more.


Why are the iPhone and iPad sims different in Xcode 7? And what can I do to solve the failure?

In Xcode 6, I removed just the data/Containers/Bundle/Application and data/Containers/Data/Application contents, but that gave this error in Xcode 7, which is why I opted for deleting the folder:

Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier 'com.rhapsody.iphone.Rhapsody3'


Deleting just the folder contents for iPad gives the same error under Xcode 7 as it did when I was getting the iPhone to work, but the workaround also fails. So I'm stymied at the moment.

Launching iPad sim in Xcode 7 shows "Unable to boot device because it cannot be located on disk"
 
 
Q