I get an error trying to run react-native in Xcode.
DEST=/Users/(Username)/Library/Developer/Xcode/DerivedData/Sample-djxgbolzezefbovcdjimcomroy/Build/Products/Debug-iphonesimulator/Sample.app
+ react-native bundle --entry-file index.ios.js --platform ios --dev true --bundle-output /Users/(Username)/Library/Developer/Xcode/DerivedData/Sample-djxgbolzezazefbovcdjimcomloy/Build/Products/Debug-iphonesimulator/Sample.app/main.jsbundle --assets-dest /Users/gitan/Library/Developer/Xcode/DerivedData/Sample-djxgbolzezazefbovcdjimcomloy/Build/Products/Debug-iphonesimulator/Sample.app
.../node_modules/react-native/packager/react-native-xcode.sh:line36:react-native:command not found
Command/bin/sh failed with exit code 127
Error occurred with Xcode,node.js update.
I wonder if the path of node_modules does not pass.
Thank you for your cooperation.
suffering from the same symptom.
at react-native-xcode.sh
export PATH=$HOME/.nodebrew/current/bin:$PATH
If you pass through the path as shown in , it will work for now
https://github.com/facebook/react-native/issues/3948
© 2024 OneMinuteCode. All rights reserved.