App stuck in splash screen in iOS

Please provide the following:

  1. SDK Version: 46
  2. Platforms(Android/iOS/web/all): iOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I’m getting the app stuck in iOS in production when trying to upload to app store but on expo go and android play store works fine. I’ve been stuck with this and doesn’t work. I tried debugging with --no-dev -minify but nothing happens, doesn’t fail. I don’t know what else to do.

Here are my eas.json and app.json:

{
  "cli": {
    "version": ">= 0.54.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

{
  "expo": {
    "name": "xxxx",
    "slug": "xxxx",
    "owner": "xxxx",
    "scheme": "xxxx",
    "version": "1.5.0",
    "orientation": "portrait",
    "icon": "./assets/xxxx.png",
    "splash": {
      "image": "./assets/orange-splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#ff7457"
    },
    "facebookScheme": "xxxx",
    "facebookAppId": "xxxx",
    "facebookDisplayName": "xxxx",
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "assets/*"
    ],
    "ios": {
      "bundleIdentifier": "com.xxxx.xxxx",
      "buildNumber": "1.5.0",
      "supportsTablet": false,
      "googleServicesFile": "./config/GoogleService-Info.plist"
    },
    "android": {
      "package": "com.xxxx.xxxx",
      "versionCode": 9,
      "googleServicesFile": "./config/google-services.json",
      "config": {
        "googleMapsApiKey": "xxxxx"
      },
      "intentFilters": [
        {
          "action": "VIEW",
          "autoVerify": true,
          "data": [
            {
              "scheme": "https",
              "host": "*.xxxx.io",
              "pathPrefix": "/"
            }
          ]
        },
        {
          "action": "VIEW",
          "category": [
            "BROWSABLE",
            "DEFAULT"
          ],
          "data": {
            "scheme": "com.googleusercontent.apps.xxxxx",
            "path": "/oauth2redirect"
          }
        }
      ]
    },
    "plugins": [
      "@react-native-firebase/app",
      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 31,
            "targetSdkVersion": 31,
            "buildToolsVersion": "31.0.0",
            "sourceCompatibility": "1.8.",
            "targetCompatibility": "1.8."
          },
          "ios": {
            "useFrameworks": "static"
          }
        }
      ],
      [
        "expo-notifications",
        {
          "icon": "./assets/white-square-logo.png",
          "color": "#ffffff"
        }
      ]
    ],
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "extra": {
      "eas": {
        "projectId": "xxxx"
      }
    }
  }
}

Hi @agusdac,

The config files seem fine. It’s hard to tell what could be the underlying issue. I’d suggest debugging your app using Console app in Xcode if you have access to macOS and Xcode installed and share the log here for us to help.

Hi there! Thank you for your answer @amanhimself !

I did run the app on a mac and I got this logs:

2023-01-03 09:44:37.662809+0100 agon[99929:1714994] [expo] 🟢 Registering module 'ExpoKeepAwake'
2023-01-03 09:44:37.663590+0100 agon[99929:1714994] [expo] 🟢 Registering module 'ExpoLocalization'
2023-01-03 09:44:37.664960+0100 agon[99929:1714994] [expo] 🟢 Registering module 'ExpoRandom'
2023-01-03 09:44:37.667650+0100 agon[99929:1714994] [expo] 🟢 Registering module 'ExpoWebBrowser'
2023-01-03 09:44:37.668085+0100 agon[99929:1714994] [expo] 🟢 Registering module 'NativeModulesProxy'
2023-01-03 09:44:37.816282+0100 agon[99929:1714994] [expo] 🟢 Posting 'appBecomesActive' event to registered modules
2023-01-03 09:44:38.396155+0100 agon[99929:1715319] [connection] nw_socket_handle_socket_event [C5.1.1:1] Socket SO_ERROR [61: Connection refused]
2023-01-03 09:44:38.400343+0100 agon[99929:1715319] [connection] nw_socket_handle_socket_event [C5.1.2:1] Socket SO_ERROR [61: Connection refused]
2023-01-03 09:44:38.401964+0100 agon[99929:1715288] [connection] nw_connection_get_connected_socket_block_invoke [C5] Client called nw_connection_get_connected_socket on unconnected nw_connection
2023-01-03 09:44:38.402107+0100 agon[99929:1715288] TCP Conn 0x600003d4cd20 Failed : error 0:61 [61]
2023-01-03 09:44:38.741860+0100 agon[99929:1715315] [javascript] AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage
2023-01-03 09:44:39.005833+0100 agon[99929:1715315] [javascript] Require cycle: App.js -> routes/AppNavigator.js -> screens/register/SportsLevelScreen.js -> App.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
2023-01-03 09:44:39.104432+0100 agon[99929:1715315] [javascript] Running "main" with {"rootTag":1,"initialProps":{}}
2023-01-03 09:44:39.438007+0100 agon[99929:1715319] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:39.440437+0100 agon[99929:1715319] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:39.708118+0100 agon[99929:1714994] [native] No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.
2023-01-03 09:44:39.861650+0100 agon[99929:1715315] [javascript] No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.
2023-01-03 09:44:39.928628+0100 agon[99929:1714994] [native] [GESTURE HANDLER] Initialize gesture handler for view <RCTRootContentView: 0x7fc25bb09a00; reactTag: 1; frame = (0 0; 393 852); gestureRecognizers = <NSArray: 0x60000022fd80>; layer = <CALayer: 0x600000c02300>>
2023-01-03 09:44:40.026388+0100 agon[99929:1715298] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.026553+0100 agon[99929:1715298] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.349599+0100 agon[99929:1715288] [native] [PERF ASSETS] Loading image at size {1704, 2556}, which is larger than the screen size {1179, 2556}
2023-01-03 09:44:40.576821+0100 agon[99929:1715464] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.577004+0100 agon[99929:1715464] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.583090+0100 agon[99929:1715464] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.583220+0100 agon[99929:1715464] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.584292+0100 agon[99929:1715289] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.584403+0100 agon[99929:1715289] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.585600+0100 agon[99929:1715464] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.585736+0100 agon[99929:1715464] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.687353+0100 agon[99929:1715315] [javascript] [TypeError: null is not an object (evaluating '_firebase.default.auth().currentUser.getIdToken')]
2023-01-03 09:44:40.692888+0100 agon[99929:1715465] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:44:40.693026+0100 agon[99929:1715465] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:45:07.438469+0100 agon[99929:1715298] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}
2023-01-03 09:45:07.438595+0100 agon[99929:1715298] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xed662242 5fb7c0a8 1bf3f783 33b5c275 ... 5cef5e61 5d97a96c }, _LSLine=478, WrongSimulatorHash={length = 32, bytes = 0x3190f8e7 217931fc b7f7be3d 298bbb9a ... 8472784b 30a84b1d }}

this one 2023-01-03 09:44:40.687353+0100 agon[99929:1715315] [javascript] [TypeError: null is not an object (evaluating '_firebase.default.auth().currentUser.getIdToken')]
is an error that I get in the console usually but doesn’t break anything, so I doubt is that.
All the other logs is what I get, any ideas?

I also got this error which I think might be the issue. Any ideas?

2023-01-03 13:35:26.690464+0100 agon[30455:1937656] [native] No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.

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