dev-resources.site
for different kinds of informations.
Quick Byte: A very specific error in React Native iOS
Published at
10/9/2024
Categories
reactnative
Author
Lem Dulfo
Categories
1 categories in total
reactnative
open
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
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.
Articles
12 articles in total
Annual Reminder: Brag About Your Work
read article
Pop Quiz: Is There a Bug in This React Native Component?
read article
Function Naming: When Itβs Called vs What It Does
read article
Solved: npm or yarn install node_modules is too big
read article
Idle MMORPG with DevCycle Feature Flags π§ββοΈ
read article
2024 Update on DEV.to Monetization: REMOVED
read article
IDE Warning When Calling Async Function with No Await
read article
patch-package with Artifactory
read article
Your Apple App Site Association Might Be Wrong
read article
Quick Byte: A very specific error in React Native iOS
currently reading
Fixing "Trying to import a file after Jest has been torn down"
read article
Pushing Anti-patterns to Production for Fun and Profit
read article
Featured ones: