'FBReactNativeSpec, PhaseScriptExecution failed with a nonzero exit code

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:

  • FBReactNativeSpec - Uncategorized - PhaseScriptExecution failed with a nonzero exit code

int he details there is another error that says:

  • bash: mobile/node_modules/react-native/scripts/../Libraries: No such file or directory


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source