../node_modules/react-native/scripts/react-native-xcode.sh': not a valid identifier
See original GitHub issueReact Native version:
Run react-native info
in your terminal and copy the results here.
/Users/edz/Library/Developer/Xcode/DerivedData/good-gztkgdoqzhchftevshndpqzmgvjb/Build/Intermediates.noindex/good.build/Debug-iphonesimulator/good.build/Script-00DD1BFF1BD5951E006B06BC.sh: line 2: export: `…/node_modules/react-native/scripts/react-native-xcode.sh’: not a valid identifier Command PhaseScriptExecution failed with a nonzero exit code
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- to fix this problem Script-00DD1BFF1BD5951E006B06BC.sh: line 3: …/node_modules/react-native/packager/react-native-xcode.sh: No such file or directory
1.open Xcode Build Phases > Bundle React Native code and images 2.edit export NODE_BINARY=node …/node_modules/react-native/packager/react-native-xcode.sh to export NODE_BINARY=node …/node_modules/react-native/scripts/react-native-xcode.sh
002 build project
Expected Results
Describe what you expected to happen. I want to know how to fix this error
Best wishes!!!
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9
Top GitHub Comments
I just added quotes
export NODE_BINARY="node ../node_modules/react-native/scripts/react-native-xcode.sh"
Under bundle react native code and images in the Build Phases tab, replace the existing export file with:
export NODE_BINARY=node ../node_modules/react-native/scripts/react-native-xcode.sh ./src/index.ios.js