I have been having issues trying to create an IOS build of a react native application. Originally I made this on windows with an android emulator. Then I tried to build the react native code on mac with xcode but I can't get past this error.
I have tried a couple things like reinstalling node and unsetting the PREFIX variable in the find-node script but I have not gotten any further
When inspecting the error it says:
int he details there is another error that says:
I had the same issue on my MacBook Pro with M1 chip. I managed to get rid of the FBReactNativeSpec error by editing the Project settings.
Try the following:
In Xcode select your app's project and then select the target.
In Terminal enter the following command to find out the path of your node installation:
which node
This should give you a path. Something like:
/Users/thomashuber/.nvm/versions/node/v16.14.0/bin/node
Copy this path.
In Xcode with the target selected click on Build Phases and open Bundle React Native code and images
Replace NODE_BINARY=node. Instead of node enter the path that you have copied so that it is something like this NODE_BINARY=/Users/thomashuber/.nvm/versions/node/v16.14.0/bin/node

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With