Xcode 7 beta 4 build error - com.apple.CoreSimulator.SimRuntime.iOS-9-0

Error creating a previously running project:

Images.xcassets: Could not find a suitable device for type SimDeviceType: com.apple.CoreSimulator.SimDeviceType.iPad-2 with SimRuntime runtime: 9.0 (13A4305g) - com.apple.CoreSimulator.SimRuntime.iOS -9-0

I deleted all the links of Xcode and all the simulators to my mac, restarted it so many times that I canโ€™t count. This happened after the last release of El Capitan 2 days ago. The project was built and worked fine before. Why did the error first come from Images.xcassets images?

I see that xcode 7 beta 4 contains all the simulators included in its package , but the list of available simulators is empty. It should be noted that I just want to run my project on a physical device, and not in a simulator (which freezes upon opening)

Register with CoreSimulator, which has been showing since the OSX update:

Jul 22 14:53:53 CoreSimulatorService [787]: com.apple.CoreSimulator.CoreSimulatorService 166 ~ 1 starting.

I managed to hide all the images from the .xcassets images and add AppIcon and LaunchImage to them. It builds fine, but whenever I try to add any other image, the assembly will fail again with the same error that was mentioned above. It is created only if the images remain empty without associated png files. Why so?

+5
source share
3 answers

Try Delete All Files From These Two Paths

rm -rf ~/Library/Developer/CoreSimulator rm -rf ~/Library/Developer/Xcode 
+1
source

The official discussion of the related issue is in the Apple forums , but people confuse the two issues because they have similar characteristics.

The current El Capitan Beta has an error that causes problems loading dyld_sim from older versions of iOS Simulator in El Capitan.

Previous versions of El Capitan Beta had a different error, due to which the CoreSimulatorService crashed (and thus limited the availability of the simulator) if you had outdated battery life in / Library / Developer / CoreSimulator.

The workaround discussed at the forum will work on both issues:

 sudo xcode-select -s /path/to/Xcode-beta.app [[ -d /Library/Developer/CoreSimulator ]] && sudo mv /Library/Developer/CoreSimulator{,.bak} sudo mv $(xcrun --sdk iphonesimulator --show-sdk-path)/usr/lib/dyld_sim{,.bak} sudo mv $(xcrun --sdk watchsimulator --show-sdk-path)/usr/lib/dyld_sim{,.bak} 

An update to Xcode in the future will โ€œundoโ€ the change to Xcode.app. The latest Xcode.app error released after the beta version of El Capitan is not affected by this error.

In the future, after the new beta version of El Capitan is released and you are updated, you will want to restore / Library / Developer / CoreSimulator if you put it aside:

 [[ -d /Library/Developer/CoreSimulator.bak ]] && sudo mv /Library/Developer/CoreSimulator{.bak,} 
0
source

Following the instructions here: support.apple.com/en-us/HT201314 , reinstall OSX using Recovery. Before doing this, remove all Xcode links. After installing os, reinstall Xcode, and the project should build just fine.

-3
source

All Articles