I'm getting the following error when running npm run ios:
yarn run v0.20.3
$ react-native-scripts ios
Starting packager...
Starting simulator...
Unable to check Xcode version: Error: Process exited with non-zero code: 1
Failed to start simulator:
Unable to verify Xcode and Simulator installation.
Exiting...
Turned out there weren't any "Command Line Tools" selected in the Xcode settings. After selecting some it worked for me. Here is how it should look like:

Hope this helps others running into the same problem 🙂
@fson - just ran into this setting up a new machine, can we provide a better error message here?

@brentvatne We certainly can. Perhaps when we detect that Xcode is installed but command line tools are not, we could display a message like:
Xcode command line tools not found. Run the command
xcode-select --installto install them.
@fson - i think latest xcode installs command line tools by default (source: I set up a new machine yesterday, seemed to happen by default? or perhaps homebrew did it? :O) -- in this case all that's needed is what @schickling mentioned above. not sure what the command would be to run to do that without involving a GUI, we may need to make a quick docs page on the repo that shows the two situations and then link to that
I think the CLI equivalent of selecting the path from the dropdown is xcode-select -s /Applications/Xcode-beta.app/Contents/Developer (-s is a shorthand for --switch). It would be cool if we could do this automatically somehow, but I think it might require sudo, so maybe not.
In any case, once this is implemented, we should test the full flow (no Xcode – Xcode installed – command line tools installed/selected) and verify that the error message makes sense after each intermediate step.
I ran into this problem after Apple auto-updated my system. Even though I had xCode etc. working previously, the simulator stopped working with React Native because I had not agreed to Apple's latest terms and conditions. The fix in my case was simply to open xCode and hit "agree".
Same solution as for jackkinsella worked in my case.
@schickling Thanks for the fix! 🙌🏾👍🏾
I solved the problem Locations->Command Line Tools for version the xCode line
Thanks for sharing, that did the trick!
Thanks for sharing!
It is working for me..Thanks
Thanks @schickling
Your solution worked!
Thank you!
Thank you, this worked for me.
Most helpful comment
Turned out there weren't any "Command Line Tools" selected in the Xcode settings. After selecting some it worked for me. Here is how it should look like:
Hope this helps others running into the same problem 🙂