React Native ios build : Can't find node
@brunocascio solution on the comment is simpler and less invasive, create a symlink to node, on command line:
ln -s $(which node) /usr/local/bin/node
On new M1 Mac I had to cd /usr/local then mkdir bin (or just sudo mkdir /usr/local/bin) first.
thanks leo for the comment
Solution for nvm users :
In your build phases scripts, just add
# Fix for machines using nvmif [[ -s "$HOME/.nvm/nvm.sh" ]]; then. "$HOME/.nvm/nvm.sh"elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then. "$(brew --prefix nvm)/nvm.sh"fi
export NODE_BINARY=node. This will make Xcode work regardless of your machine using nvm.