Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10.0 simulator unable to boot [duplicate]

I have recently been trying to use the newest version of Xcode (10.0), but when I go to open the simulator I get the error saying

"simulator unable to boot"

I have tried downloading previous versions but I still get the same error.

Screenshot for issue attached

like image 395
Liam Ramsbottom Avatar asked Sep 04 '26 04:09

Liam Ramsbottom


1 Answers

Your simulators might be stuck in some loop, try running this in bash:

The following lines delete all simulators

xcrun simctl shutdown all  
xcrun simctl delete $(xcrun simctl list | grep -o '[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}' | xargs)
xcrun simctl delete unavailable

Then you can install all the devices via xcrun simctl again or via xcode. Simply run this code in bash line by line once again:

# This takes latest runtime available in xcode build. (IT counts with beta...)
runtime=$(xcrun simctl list runtimes | grep "iOS" | tail -1 | awk -F' - ' '{print $3F}')

# Simulators should carry the iOS version. And probably CI Prefix.
# Check if simulators alreadz exists.
echo "The current iOS runtime is: $runtime"
xcrun simctl create "iPhone 7" com.apple.CoreSimulator.SimDeviceType.iPhone-7 $runtime
like image 195
Dominik Bucher Avatar answered Sep 12 '26 03:09

Dominik Bucher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!