Crash on start TestFlight

Hi,


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.



If it helps I have some logs



Last Exception Backtrace:
0   CoreFoundation                0x1b6d96a48 __exceptionPreprocess + 220 (NSException.m:199)
1   libobjc.A.dylib                0x1b6abdfa4 objc_exception_throw + 56 (objc-exception.mm:565)
2   ComAjouveGeoloc                0x100949a6c 0x100790000 + 1809004
3   ComAjouveGeoloc                0x100969aac 0x100790000 + 1940140
4   libdispatch.dylib              0x1b6a63184 _dispatch_client_callout + 16 (object.m:495)
5   libdispatch.dylib              0x1b6a46ea0 _dispatch_async_and_wait_invoke + 92 (queue.c:1536)
6   libdispatch.dylib              0x1b6a63184 _dispatch_client_callout + 16 (object.m:495)
7   libdispatch.dylib              0x1b6a4634c _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 996 (inline_internal.h:2484)
8   CoreFoundation                0x1b6d145e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1749)
9   CoreFoundation                0x1b6d0f5d8 __CFRunLoopRun + 2004 (CFRunLoop.c:3069)
10  CoreFoundation                0x1b6d0eadc CFRunLoopRunSpecific + 464 (CFRunLoop.c:3192)
11  GraphicsServices              0x1c0caf328 GSEventRunModal + 104 (GSEvent.c:2246)
12  UIKitCore                      0x1bae1c63c UIApplicationMain + 1936 (UIApplication.m:4773)
13  ComAjouveGeoloc                0x1007974d8 0x100790000 + 29912
14  libdyld.dylib                  0x1b6b98360 start + 4
Did you manage to figure it out? I'm facing the same issue right now. Been stuck on this for a week now. The app has been deployed on Play store and works fine on expo client but crashes on launch in testflight.
Hello, same from here.

Working fine on Android and ios simulator but crash on TestFlight.

Did you find any solutions ?

We are experiencing the exact same issue. Using expo 42. Any advice in this thread is welcome.

Having the same issue on SDK42.

{
  "name": "APPNAME",
  "version": "0.0.1",
  "description": "",
  "author": "",
  "private": true,
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo r -c",
    "eject": "expo eject",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "test": "jest"
  },
  "dependencies": {
    "@bugsnag/expo": "6.5.1",
    "@expo/vector-icons": "^12.0.0",
    "@react-native-community/slider": "3.0.3",
    "@react-navigation/bottom-tabs": "^5.11.2",
    "@react-navigation/material-top-tabs": "5.3.17",
    "@react-navigation/native": "^5.8.10",
    "@react-navigation/stack": "^5.12.8",
    "crypto-js": "^4.0.0",
    "expo": "^42.0.0",
    "expo-ads-admob": "~10.1.2",
    "expo-av": "~9.2.3",
    "expo-blur": "~9.0.3",
    "expo-contacts": "~9.2.5",
    "expo-device": "~3.3.0",
    "expo-facebook": "~11.3.1",
    "expo-file-system": "~11.1.3",
    "expo-firebase-analytics": "~4.1.0",
    "expo-firebase-core": "~3.1.0",
    "expo-firebase-recaptcha": "^1.3.0",
    "expo-font": "~9.2.1",
    "expo-image-manipulator": "~9.2.2",
    "expo-image-picker": "~10.2.2",
    "expo-keep-awake": "~9.2.0",
    "expo-linking": "~2.3.1",
    "expo-location": "~12.1.2",
    "expo-network": "~3.2.0",
    "expo-permissions": "~12.1.1",
    "expo-secure-store": "~10.2.0",
    "expo-sms": "~9.2.3",
    "expo-updates": "~0.8.2",
    "firebase": "8.2.3",
    "lru-cache": "5.1.1",
    "lunr": "2.3.8",
    "react": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
    "react-native-country-picker-modal": "^2.0.0",
    "react-native-crypto-js": "^1.0.0",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-keyboard-aware-scroll-view": "^0.9.3",
    "react-native-pager-view": "5.0.12",
    "react-native-safe-area-context": "3.2.0",
    "react-native-safe-area-view": "1.0.0",
    "react-native-scripts": "2.0.1",
    "react-native-scrollable-tab-view": "^1.0.0",
    "react-native-svg": "12.1.1",
    "react-native-tab-view": "^3.1.1",
    "react-native-vector-icons": "6.0.2",
    "react-native-webview": "11.6.2",
    "react-redux": "7.1.3",
    "redux": "4.0.0",
    "yarn": "^1.22.0"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0",
    "@react-native-community/masked-view": "0.1.10",
    "babel": "6.23.0",
    "babel-plugin-module-alias": "1.6.0",
    "clamp": "1.0.1",
    "react-native-screens": "~3.4.0",
    "schedule": "0.4.0"
  },
  "expo": {
    "version": "6"
  }
}

I used expo upgrade to update the app. I was on SDK39 and now I'm trying to launch SDK42 but my Testflight build crashes immediately. When running in the Expo Go app or the iOS Simulator it loads correctly, no errors.

Run expo build:android or expo build:ios instead of using eas. You can still use eas submit.

Anyone found any solution this yet? My app is working fine with Expo Go even in production mode. Build is also successfully. App installs fine. But it crashes while opening, everytime.

same! my expo app crash on TestFlight when call firebase API, but it works fine on expo go! so weird (no one answer question here like StackOver Flow?)

same! my expo app crash on TestFlight when call firebase API, but it works fine on expo go! so weird (no one answer question here like StackOver Flow?)

Crash on start TestFlight
 
 
Q