App closing after showing splash screen

Hi,

First post here! First of all, thanks for the creators behind Expo for building such an excellent community for React Native development!

Had installed the expo-splash-screen package using these steps mentioned here for iOS in my React Native project created using react-native cli.

Post the setup the app failed to launch. After deleting the app from the simulator and re-running npm start, the app started working again. The splash screen is shown as configured. However, after the splash screen the app closes automatically. There are no errors in the npm start logs as well the npm run ios logs. Any ideas what additionally needs to be done so that the other screens on the app is shown? Is it that the SplashScreen component needs to configured to open other sections of the app?

Attaching the relevant logs taken from the console app on Mac

Exception Type:  EXC_CRASH (SIGABRT)
...
Last Exception Backtrace:
0   CoreFoundation               	       0x180437324 __exceptionPreprocess + 160
1   libobjc.A.dylib              	       0x180051274 objc_exception_throw + 56
2   EDetailViewer                	       0x1009e1958 -[EXSplashScreenViewNativeProvider createSplashScreenView] + 1588
3   EDetailViewer                	       0x1009df420 -[EXSplashScreenService showSplashScreenFor:options:splashScreenViewProvider:successCallback:failureCallback:] + 424 (EXSplashScreenService.m:62)
...

From this stack trace, it seems that the crash was triggered by a call to the createSplashScreenView function in the EXSplashScreenViewNativeProvider class of the EDetailViewer app. The error occurred while showing a splash screen, as indicated by the function names like showSplashScreenFor and createSplashScreenView.

Looking forward to get this working.

Details about my development environment:

Platforms(Android/iOS/web/all): ios

expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.1/bin/yarn
npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm
Watchman: 2023.07.10.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10406996
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
npmPackages:
expo: ^49.0.0 => 49.0.7
react: 18.2.0 => 18.2.0
react-native: 0.72.4 => 0.72.4
Expo Workflow: bare

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.