Crash on start on TestFlight version

I am building an app with expo, when the app is running on expo I have no issues but when I submit the app to Apple Store Connect and run it via TestFlight the app instant crash.

Those are my dependencies:

    "@react-native-community/masked-view": "0.1.5",
    "@react-navigation/native": "^5.0.7",
    "@react-navigation/stack": "^5.0.9",
    "expo": "~36.0.0",
    "expo-in-app-purchases": "^8.0.0",
    "expo-localization": "~8.0.0",
    "i18n-js": "^3.5.1",
    "react": "~16.9.0",
    "react-dom": "~16.9.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
    "react-native-gesture-handler": "~1.5.0",
    "react-native-phone-input": "^0.2.4",
    "react-native-reanimated": "~1.4.0",
    "react-native-safe-area-context": "0.6.0",
    "react-native-screens": "2.0.0-alpha.12",
    "react-native-unimodules": "^0.7.0",
    "react-native-web": "~0.11.7",
    "react-redux": "^7.2.0",
    "redux": "^4.0.5",
    "redux-thunk": "^2.3.0",
    "sentry-expo": "^2.0.3"

I am submitting the build to Apple Store Connect running

expo build:ios

and then

expo upload:ios

The app is submitted without problems.

I added sentry to have more details on the crash but nothing, it seems to crash before sentry initialization.

I have some more logs

Last Exception Backtrace:
0   CoreFoundation                	0x1910855f0 __exceptionPreprocess + 224 (NSException.m:199)
1   libobjc.A.dylib               	0x190da7bcc objc_exception_throw + 56 (objc-exception.mm:565)
2   ComAjouveGeoloc               	0x100b61a6c -[EXAppViewController maybeShowError:] + 1144 (EXAppViewController.m:130)
3   ComAjouveGeoloc               	0x100b81aac handleFatalReactError_block_invoke_2 + 536 (EXReactAppExceptionHandler.m:27)
4   libdispatch.dylib             	0x190d4b524 _dispatch_client_callout + 16 (object.m:495)
5   libdispatch.dylib             	0x190d2f2d4 _dispatch_async_and_wait_invoke + 92 (queue.c:1536)
6   libdispatch.dylib             	0x190d4b524 _dispatch_client_callout + 16 (object.m:495)
7   libdispatch.dylib             	0x190d2e6fc _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 860 (inline_internal.h:2484)
8   CoreFoundation                	0x191003748 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1749)
9   CoreFoundation                	0x190ffe61c __CFRunLoopRun + 1724 (CFRunLoop.c:3069)
10  CoreFoundation                	0x190ffdc34 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3192)
11  GraphicsServices              	0x19b14738c GSEventRunModal + 160 (GSEvent.c:2246)
12  UIKitCore                     	0x19513022c UIApplicationMain + 1932 (UIApplication.m:4820)
13  ComAjouveGeoloc               	0x1009af4d8 main + 88 (main.m:8)
14  libdyld.dylib                 	0x190e85800 start + 4

I ran it on simulator and get more useful logs

*** Terminating app due to uncaught exception 'ExpoFatalError', reason: 'Expo encountered a fatal error: Unhandled JS Exception: Invariant Violation: Native module cannot be null.'
terminating with uncaught exception of type NSException
abort() called

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