1
votes

I am unable to get the default "awesomeproject" react-native app working on my new Mac/IOS simulator.

I have installed all the prerequisites on my new mac as listed here: https://facebook.github.io/react-native/docs/getting-started.html.

After installing everything I run

sudo react-native init awesomeproject. This seems to work correctly. I then cd to awesomeproject and run sudo react-native run-ios

It eventually builds "successfully" and launches the Iphone simulator. It launches a new terminal for the packager and here it shows loading dependency / graph: done. But it does show a watchman ERROR. Seee screenshot.

After this, nothing happens. It doesn't launch/install the app on the simulator. The terminal that I ran react-native run-ios is at the command prompt.

I have looked at the troubleshooting guide and other posts, but can't see what I'm missing? I am just trying to do the basic 101 of getting this working on a mac. enter image description here

I'm running MacOS: 10.14.5 React-Native version 0.59.9 react-native-cLI: 2.0.1 Xcode 10.2.1 Node: 10.16.0

1

1 Answers

0
votes

Either create project again without sudo and run it without sudo or you need to run watchman with sudo permissions. I would suggest creating project again. Please avoid using sudo as much as you can. Thanks