12

I have recently upgraded to xcode 10.2 and I am having a strange error. Whenever I try to launch my app I'm getting following error - Timed out trying to boot simulator after waiting 60.00s.

enter image description here

I have even tried do a fresh install but no luck I am always getting the same error.

Does anyone knows how can I fix this ?

Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256

3 Answers3

57

I'm not sure why it's fixed this way. What I did is I ran this command in terminal $ xcrun simctl erase all. After this I run my project again from xcode without even downloading anything and it worked.

Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
6

I faced the issue in XCode 10.1 versions. So I did sudo xcrun simctl erase all everytime, worked fine.

However, I updated to XCode 10.2, got the same error. I did the same thing, but didn't worked.

It replied me xcrun: error: active developer path ("~/Xcode.app/Contents/Developer") does not exist, didn't find that trouble in earlier versions of XCode.

I had to reset by sudo xcode-select --reset and restarted my mac.

Worked fine for me now.

Ankur Lahiry
  • 2,253
  • 1
  • 15
  • 25
3

Try this:

  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.
kelin
  • 11,323
  • 6
  • 67
  • 104