When building my React Native app I got the Can't find 'node' binary to build React Native bundle error, and found this solution where you go to Build Phases -> Bundle React Native code and images and add lines like this:
Where in this example ^^ the node binary was located at /opt/homebrew/bin/node, for me it's located at /Users/<me>/.nvm/versions/node/v16.14.2/bin/node. I feel like it can't be good practice to a) hard code my username into XCode, and b) to hard code the specific node version.
What I Want To Know:
Is the effect of adding these lines that it replaces the node version in
react-native-xcode.shwith my own (16.14.2)?If so, could I just change my local node version to match the one in
react-native-xcode.sh? I can't find a reference in that file to a particular version, so I don't know which one I'd use innvm use <version>.Is there a different way I could write these lines in
Bundle React Native code and imagesthat wouldn't hard code the version in this way?
