question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

../node_modules/react-native/scripts/react-native-xcode.sh': not a valid identifier

See original GitHub issue

React 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.

  1. 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 image

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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

25reactions
amangeldimagjancommented, Feb 26, 2021

I just added quotes export NODE_BINARY="node ../node_modules/react-native/scripts/react-native-xcode.sh"

1reaction
maxgertnercommented, Jul 24, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "not a valid identifier" error after setting environment ...
The correct syntax to assign and export a variable (with the assigned value) at the same time is export NAME=value . I suspect...
Read more >
not a valid identifier bash export says - Stack Overflow
I tried these steps -bash: export: `HADOOP_OPTS-Djava.library.path=/home/hdoop/hadoop-3.2.1/lib/nativ': not a valid identifier.
Read more >
bash: export: `--wait': not a valid identifier - Unix StackExchange
The bash builtin export thus receives two arguments, VAR=foo (a perfectly valid assignment) and --wait , which is not a valid variable name....
Read more >
path - -bash: export: ''not a valid identifier when logging into ...
You probably have the command export $PATH. (or something like it) in one of your initialization files ( .profile , .bashrc , etc.) ......
Read more >
Bash 'not a valid identifier' message since upgrading ... - GitHub
I guess something went haywire with the oracle JRE / JDK installations on the machine. I simply deleted the oraclejdk.sh file. 1
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found