Xcode 10.2 unable to launch simulator

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.


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.