I am following the tutorial on the official React Native website.
Using the following to build my project:
react-native run-ios
I g
In my case the problem was that Xcode was not installed.