Skip to content

Instantly share code, notes, and snippets.

@mael
Last active July 16, 2024 11:44
Show Gist options
  • Save mael/e3d9cd77a43347091d5c3894ce4e22c7 to your computer and use it in GitHub Desktop.
Save mael/e3d9cd77a43347091d5c3894ce4e22c7 to your computer and use it in GitHub Desktop.
Xcode 10.2 "Unable to boot the Simulator"

Solution "Unable to boot the Simulator"

sudo mkdir /private/tmp

sudo chmod 1777 /private/tmp

Other basic command

xcrun

xcrun simctl list devices //to list all simulators

xcrun simctl delete // to delete specific device

xcrun simctl delete unavailable // to remove old devices for runtimes that are no longer supported

Delete and clean

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

xcode

sudo xcode-select --reset

To delete devices go here:

~/Library/Developer/CoreSimulator/Devices

Simulator

Defautl open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/

Launch multiple simulators

find simulator id’s from the ‘xcrun simctl list’ command

xcrun simctl boot 12F3C6FB-1A8A-4D20-922F-2DB485F58F0F

xcrun simctl boot BE53CBFF-4900-4F10-A1D4-B451AB4C9E7E

open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/

From Xcode project

  1. Go to Window > Devices and Simulators, delete all the simulators, all of them.
  2. Clear /Library/Developer/CoreSimulator/ folder.
  3. Return to Xcode and install the required simulators.
@Sameer-Ijaz
Copy link

I was able to solve the issue by doing this https://www.youtube.com/watch?v=9bDDWNoibIk&t=12s&ab_channel=SgtSam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment