Xcode 10.3 Installation
XcodeXcode10Xcode Problem Overview
I have just been (involuntarily) upgraded to Xcode 10.3 (10G8). I'm getting the following error:
> /Users/hgm/XCode/Gnosys/TGuide/TGPrep/Assets.xcassets:-1: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4
It appears that the upgrade to Xcode is incomplete.
How do I ensure a complete installation, if this is the problem?
Xcode Solutions
Solution 1 - Xcode
Restarting your computer/macOS will resolve the issue.
Solution 2 - Xcode
Kill all simulator processes
$ sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Set the correct Xcode path
$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
If that doesn’t work, reset all simulators
$ xcrun simctl erase all
Solution 3 - Xcode
First, try to close any running Simulator and Xcode instances. Then, restart CoreSimulatorService.
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
You should now be able to build and run your app without any issues.
If not, another issue that you might encounter is that the Xcode upgrade deleted some versions of iOS. You might need to download an iOS Simulator from Xcode. I upgraded from Xcode 10.2, to 10.3, and no simulator was available.
Go to Xcode
-> Preferences
, and click on Components
.
From there you will be able to download a version of iOS.
After the download is complete, close any running Simulator and Xcode instances again and try restarting CoreSimulatorService.
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Solution 4 - Xcode
-
Delete Xcode in Launchpad.
-
Clean ~/Library/Developer folder.
-
Open the App Store, the Xcode APP button will be "Open".
-
Open it.
-
it worked fine or me.
-
I have cleaned Xcode folder and project, but it did not work.
Solution 5 - Xcode
I had the same issue and could only resolve it by downloading the iOS versions again (from Xcode Preferences > Components) that are used in my list of simulators. After that a rebuild (command-B) resolved the error.
In my case downloading iOS 10.3.1 was the solution, but your used versions may differ.