Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

The error I get when building a previously working project:

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

I've removed all references of Xcode and all simulators on my mac, restarted it so many times I can't count. This happened after the last release of El Capitan 2 days ago. The project was building and running fine before.. Why would the error originate from the Images.xcassets in the first place?

I can see xcode 7 beta 4 has all the simulators included in its package, but the list of available simulators is empty. To be noted I just want to run my project on a physical device and not the simulator (which freezes when open)

Log from the CoreSimulator that's been showing since the moment I upgraded OSX:

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

Managed to narrow it down to removing all the images from the Images.xcassets and adding an AppIcon and a LaunchImage to that. Builds ok, but whenever I attempt to add any other Image the build will fail again with the same error as mentioned above. It only builds if the images are left empty with no associated png files. Why though?

like image 989
Mezzo Avatar asked Nov 27 '22 15:11

Mezzo


1 Answers

Try Delete all the files in these two path

rm -rf ~/Library/Developer/CoreSimulator
rm -rf ~/Library/Developer/Xcode
like image 152
Albert.Qing Avatar answered Dec 09 '22 12:12

Albert.Qing