Post

Replies

Boosts

Views

Activity

Reply to React-Native iOS app is crashing immediately upon launch when creating development build
Thank you for your response! TLDR: I needed to use npx expo prebuild --clean to clear information related to previous builds I had created. Full version: Your response gave me a hint into what was going wrong. Just as you said, the RCTAppDelegate (which stands for React App Delegate I believe) was causing the NSException (or NeXTSTEP Exception) to appear. I wondered why the RCTAppDelegate would cause an exception. After hours of searching and doing research on RN, Apple crash reports, etc. I thought to myself: maybe the bundleURL is wrong or missing, thus causing the syntax or language exception. It turns out, I needed to use npx expo prebuild --clean to clear information related to previous builds I had created. I also removed all of the previous zip files and builds from my app's root directory. After that, I could use eas build --profile dev-sim --platform ios --local and the build worked! I think RCTAppDelegate was trying to find the correct bundleURL, but got confused when it found multiple bundleURLs in the root directory.
Jul ’24