xcode simulator won't open

I'm using expo. I run npm start, then press "i" to open the IOS simulator. It was working up to now and I'm not sure what changed. I get this error

Error: xcrun exited with non-zero code: 148
Invalid device or device pair: 3C84B562-463E-4524-AD01-4E8A959D3415

Any advice on how to proceed?

Having the same issue, even after I tried fastlane snapshot reset_simulators

and

Xcode -> Preferences -> Locations -> Derived Data (Click the little arrow) -> Delete the folder for your project.

I solved the issue by having the simulator open when executing npm start (I actually used yarn). Once I did that, expo run fine and the app loaded inside my simulated iphone.

Actually, I found two ways to solve this: Option 1, download the IOS simulators in Xcode and launch it before running (I didn't download before) Option 2, just run "expo start" without system appointed, and scan the QRCode on your Iphone and open the link by "Expo Go"

xcode simulator won't open
 
 
Q