React Native `RuntimeError: abort(Error: xcrun exited with non-zero code: 2` on iOS simulator
Solution 1:
Figured it our thanks to ShepSims from https://github.com/expo/expo-cli/issues/2413 . Before being able to open the iOS simulator from the terminal, I needed to open XCode and open the simulator there. This mounts the simulator bundle, allowing later access by pressing i
after running expo start
.
Solution 2:
I was receiving the same error as above with XCode command line tools installed only, no XCode installed.
I tried re-installing XCode command line tools which didn't do anything.
For me this was solved with advice mentioned at https://github.com/expo/expo-cli/issues/3871:
- open
Simulator.app
, as it automatically sets the default device.
Solution 3:
It is not anything. It was solved by opening simulator from XCOde on my mac