MobileReact nativeExpo
RN Troubleshooting
General
App Keeps Crashing
Various Possibilities:
- Check if the adaptiveIcon size / color is already following guideline or not
- Check if the splash image already following guideline or not
Android
[Build Issue] when encounter issue related to native classpath / gradle plugin during compile / build. Try:
-
Clean gradle cache
if still persist:
-
[Expo] update latest version:
npx expo install --check
-
[Network] Try to change wifi network (sometimes some ISP block some resource url)
[Development Builds] Static Env through Expo Constants Extra
Whenever values in expo constants extra is updated, we must:
-
run prebuild AND clean to make sure it loads current values.
-
Then rebuild the development build
iOS
[Prebuild and Run Development Build Issue] Can't find node
or:
- iOS Release build from XCode fails at "[CP-User] [Hermes] Replace Hermes for the right configuration, if needed" step after adding a package
resolution:
- edit
ios/.xcode.env.local
:
References:
- https://github.com/facebook/react-native/issues/39903#issuecomment-1859059586
- https://github.com/facebook/react-native/issues/39903#issuecomment-1847591269
- https://stackoverflow.com/a/78441400/20619325
- https://github.com/facebook/react-native/issues/43285
PhaseScriptExecution failed with a nonzero exit code
-
edit
ios/.xcode.env
:
Debugging EAS Local Build
Set EAS_LOCAL_BUILD_SKIP_CLEANUP=1 and see xcode logs
References:
Signing Issue
a. Open keychain access (open spotlight, search Keychain Access) b. under login > My Certificates, delete all Apple Distribution: ... certificates
References: