Run-ios not working

I have an embedded IOS responsive and it worked fine, oddly enough, it only worked in XCode but not in the terminal using this command:

react-native run-ios
react-native run-ios --device

      

Both commands don't work in the root directory, I tried to delete the node_modules folder and then run:

npm install; react-native link;

      

Unfortunately it doesn't work, here are my logs:

enter image description here enter image description here enter image description here

Any help!

+7


source to share


4 answers


It looks like you have a lot of missing libraries that won't load for some reason, I recommend that you remove all loaded libraries and then start over:

  • remove node_modules / folder
    • delete ios / Pods folder
    • delete ios / build folder
    • run: npm install

  • run: cd ios; pod install; cd../

  • run: react-native link



What he

+7


source


I was able to fix this issue by updating the node.

brew upgrade node

      



enter this in a terminal.

+1


source


I managed to get it to work using the instructions here facebook / watchman # 376:

sudo launchctl unload -F ~root/Library/LaunchAgents/com.github.facebook.watchman.plist

      

Don't know enough about the watchman to understand why it runs as a service. But it worked anyway.

or

Uninstalling and reinstalling Watchman fixed this issue for me.

0


source


Please try this solution, it might work for you.

https://github.com/facebook/react-native/issues/24450#issuecomment-516760157

0


source







All Articles