Expo app crashes on start in Testflight but runs fine with "expo start --no-dev --minify"

SDK Version: 42.0.0
Platforms(Android/iOS/web/all): iOS

Hi Expo team & community! We’ve been experiencing issues with the application crashing after pushing our latest updates to our application in the App Store, and we were wondering if anyone has any suggestions on how to debug this issue.

Our app has been using Expo and running fine over the past year or so, but we recently released a new build that uses @stripe/stripe-react-native for payment processing and uses Expo SDK 42.0.0(was previously using Expo SDK 40.0.0) and this build is crashing as soon as the app loads in Testflight. The odd thing is that the app runs without errors even with “expo start --no-dev --minify” when testing on the iPhone.

I was wondering if there’s a better way to debug this or another command I should try running the app with. It’s been a little tricky to find what’s causing the error due to lack of errors.

Here’s some of my files below:

app.json

{
  "expo": {
    "userInterfaceStyle": "light",
    "name": "HFC",
    "slug": "fishing-app",
    "privacy": "public",
    "platforms": [
      "ios",
      "android",
      "web"
    ],
    "version": "1.2.45",
    "orientation": "portrait",
    "icon": "./public/icons/hfc-icon.png",
    "splash": {
      "image": "./public/mdpi-splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.hfc.huntingandfishingclub",
      "buildNumber": "1.2.45",
      "googleServicesFile": "./GoogleService-Info.plist",
      "icon": "./public/icons/hfc-icon.png",
      "infoPlist": {
        "NSCameraUsageDescription": "This allows us to use the camera to allow you to post your memories and photos to pins.",
        "NSLocationWhenInUseUsageDescription": "This allows us to use your location to provide you certain features like displaying the nearest fishing and hunting locations and showing your location on the map for your reference.",
        "NSPhotoLibraryUsageDescription": "This allows us to use the photo gallery to allow you to post your memories and photos to pins.",
        "UIUserInterfaceStyle": "Light"
      },
      "config": {
        "googleSignIn": {
          "reservedClientId": {CLIENT_ID}
        }
      }
    },
    "android": {
      "package": "com.hfc.huntingandfishingclub",
      "permissions": [
        "CAMERA",
        "RECORD_AUDIO",
        "READ_PHONE_STATE",
        "WRITE_EXTERNAL_STORAGE",
        "READ_CONTACTS",
        "LOCATION",
        "ACCESS_COARSE_LOCATION",
        "ACCESS_FINE_LOCATION"
      ],
      "versionCode": 133,
      "icon": "./public/icons/hfc-icon.png",
      "googleServicesFile": "./google-services.json",
      "config": {
        "googleSignIn": {
          "apiKey": {MY_API_KEY}
        },
        "googleMaps": {
          "apiKey": {MY_API_KEY}
        }
      }
    }
  }
}

package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "debug": "open 'rndebugger://set-debugger-loc?host=localhost&port=19001' && expo start"
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-native-community/blur": "^3.6.0",
    "@react-native-community/datetimepicker": "3.5.2",
    "@react-native-community/masked-view": "0.1.10",
    "@react-navigation/bottom-tabs": "5.10.0",
    "@react-navigation/native": "6.0.1",
    "@react-navigation/stack": "5.10.0",
    "@stripe/stripe-react-native": "0.1.4",
    "aws-sdk": "^2.681.0",
    "axios": "^0.19.2",
    "base-64": "^0.1.0",
    "cors": "^2.8.5",
    "expo": "^42.0.0",
    "expo-blur": "~9.0.3",
    "expo-camera": "~11.2.2",
    "expo-constants": "~11.0.1",
    "expo-image-picker": "~10.2.2",
    "expo-intent-launcher": "~9.1.0",
    "expo-jwt": "^1.3.0",
    "expo-linear-gradient": "~9.2.0",
    "expo-location": "~12.1.2",
    "expo-notifications": "~0.12.3",
    "expo-updates": "~0.8.2",
    "fiction-expo-restart": "^1.1.0",
    "firebase": "8.2.3",
    "firebase-admin": "^9.1.1",
    "firebase-functions": "^3.11.0",
    "fuse.js": "^6.4.6",
    "jwt-decode": "^2.2.0",
    "moment": "^2.26.0",
    "nodemailer": "^6.4.11",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
    "react-native-auto-height-image": "^3.2.4",
    "react-native-aws3": "0.0.9",
    "react-native-datepicker": "^1.7.2",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-keyboard-listener": "^1.1.0",
    "react-native-maps": "0.28.0",
    "react-native-screens": "~3.4.0",
    "react-native-snap-carousel": "^3.9.0",
    "react-redux": "^7.2.0",
    "react-swipeable-views-native": "^0.13.2",
    "redux": "^4.0.5",
    "redux-immutable-state-invariant": "^2.1.0",
    "redux-thunk": "^2.3.0",
    "socket.io": "^2.3.0",
    "socket.io-client": "^2.3.0"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0",
    "@babel/plugin-transform-typescript": "^7.14.6",
    "babel-preset-expo": "8.3.0"
  },
  "private": false
}

Apple Crash Reports
Report 1
Report 2

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