Quick Byte: A very specific error in React Native iOS

Just a quick note which may or may not solve your React Native project’s problem.

I was seeing this error when trying to run or build my project on iOS.

The following build commands failed:
PhaseScriptExecution [CP-User] Generate Specs
…P…


This content originally appeared on DEV Community and was authored by Lem

Just a quick note which may or may not solve your React Native project's problem.

I was seeing this error when trying to run or build my project on iOS.

The following build commands failed:
        PhaseScriptExecution [CP-User] Generate Specs
...Pods.build/Debug-iphonesimulator/React-rncore.build/Script-F00BA4.sh...(in target 'React-rncore' from project 'Pods')

Clues:

  • the error comes from a shell script in rncore, from project Pods, during "PhaseScriptExecution"

Investigation:

  • deleted Pods folder and Podfile.lock, reinstalled pods
  • checked the Podfile and the use_react_native configuration, looked okay
  • hmm PhaseScriptExecution seems interesting, I remember setting up something in XCode for my Target's Build Phases

A screenshot of the Build Phases section on XCode showing a shell script that runs react-native-xcode.sh

There!

  • the rncore script throwing the error must be getting called by react-native-xcode.sh -- But what's setting node binary?
  • open up .xcode.env.local -- it set it to some weird temporary directory, let's fix that
  • npx react-native run-ios
  • FIXED!

No hate please, this is a note-to-self that I'm making public in the hopes that it helps any devs that encounter something similar.


This content originally appeared on DEV Community and was authored by Lem


Print Share Comment Cite Upload Translate Updates
APA

Lem | Sciencx (2024-10-09T22:59:41+00:00) Quick Byte: A very specific error in React Native iOS. Retrieved from https://www.scien.cx/2024/10/09/quick-byte-a-very-specific-error-in-react-native-ios/

MLA
" » Quick Byte: A very specific error in React Native iOS." Lem | Sciencx - Wednesday October 9, 2024, https://www.scien.cx/2024/10/09/quick-byte-a-very-specific-error-in-react-native-ios/
HARVARD
Lem | Sciencx Wednesday October 9, 2024 » Quick Byte: A very specific error in React Native iOS., viewed ,<https://www.scien.cx/2024/10/09/quick-byte-a-very-specific-error-in-react-native-ios/>
VANCOUVER
Lem | Sciencx - » Quick Byte: A very specific error in React Native iOS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/10/09/quick-byte-a-very-specific-error-in-react-native-ios/
CHICAGO
" » Quick Byte: A very specific error in React Native iOS." Lem | Sciencx - Accessed . https://www.scien.cx/2024/10/09/quick-byte-a-very-specific-error-in-react-native-ios/
IEEE
" » Quick Byte: A very specific error in React Native iOS." Lem | Sciencx [Online]. Available: https://www.scien.cx/2024/10/09/quick-byte-a-very-specific-error-in-react-native-ios/. [Accessed: ]
rf:citation
» Quick Byte: A very specific error in React Native iOS | Lem | Sciencx | https://www.scien.cx/2024/10/09/quick-byte-a-very-specific-error-in-react-native-ios/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.