question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App is stuck on splash screen when opening it in Testflight

See original GitHub issue

🐛 Bug Report

Environment

Expo CLI 3.0.10 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.14.2 - /usr/local/bin/node
yarn install v0.15.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 6.66s. - /usr/local/bin/yarn
      npm: 6.10.3 - /usr/local/bin/npm
      Watchman: 4.7.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5692245
      Xcode: 10.3/10G8 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^33.0.0 => 33.0.7 
      react: 16.8.3 => 16.8.3 
      react-native: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz => 0.59.8 
      react-navigation: ^3.11.0 => 3.11.1 
    npmGlobalPackages:
      expo-cli: 3.0.10

I am trying to run the app through(testflight). Upload went well but when I downloaded app on Testflight and opened it, it seems to be stuck on splash screen(waiting for more then an hour but no luck).

Steps to Reproduce

Upload app on testflight and run the app from there.

Expected Behavior

App to work the same as it works in development or when running it on expo.io. Seems to work on expo.io when I published app over there and scanned/opened it with expo app.

Actual Behavior

App is stuck on Splash screen.

Reproducible Demo

Upload app on Testflight and run it there.

Sharing my app.js below

import { AppLoading } from "expo"
import { Asset } from "expo-asset"
import * as Font from "expo-font"
import React from "react"
import { Ionicons } from "@expo/vector-icons"
import { Provider } from "react-redux"
import store from "./store"
import Root from "./Root.js"
import { YellowBox } from "react-native"
import AppNavigator from "./navigation/AppNavigator"

YellowBox.ignoreWarnings(["Remote debugger"])

export default class App extends React.Component {
  constructor(props) {
    super(props)
    this.state = { isReady: false }
  }

  async loadResourcesAsync() {
    await Promise.all([
      Asset.loadAsync([
        require("./assets/images/robot-dev.png"),
        require("./assets/images/robot-prod.png")
      ]),
      Font.loadAsync({
        // This is the font that we are using for our tab bar
        ...Ionicons.font,
        "Rubik-medium": require("./assets/fonts/Rubik-Medium.ttf"),
        "Rubik-regular": require("./assets/fonts/Rubik-Regular.ttf"),
        "Rubik-light": require("./assets/fonts/Rubik-Light.ttf"),
        geo: require("./assets/fonts/geogrotesque.ttf")
      })
    ])
  }

  render() {
    if (!this.state.isReady) {
      return (
        <AppLoading
          startAsync={this.loadResourcesAsync}
          onError={error => console.warn(error)}
          onFinish={() => this.setState({ isReady: true })}
        />
      )
    }

    return (
      <Provider store={store}>
        <AppNavigator />
      </Provider>
    )
  }
}

Any suggestions would be appreciated, thanks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nikasvancommented, Aug 27, 2019

It’s still weird that there was no error message of any kind when Splash screen was present. This

0reactions
cruzachcommented, Aug 27, 2019

Great 😄 What was the exact error cause/fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

On TestFlight, an app stucks on the splash screen. #16180
An app works fine via the expo app (both on simulator and on real device) but when I try to run the standalone...
Read more >
App is stuck on splash screen when opening it in Testflight
App seems to work on expo.io when I published app over there and scanned/opened it with expo app.
Read more >
App is stuck on splash screen when opening it in Testflight
I am trying to run the app through(testflight). Upload went well but when I downloaded app on Testflight and opened it, it seems...
Read more >
Fix app stuck on the splash screen on iOS - MacVangelist
Steps to fix app stuck on the splash screen on iOS · Step 1 – Disable your Internet connection, wait 10 seconds and...
Read more >
Splash Screen Stuck on IOS 14.4+ | Apple Developer Forums
My team is building an app on IOS(Android is fine). The app splash screen gets stuck and the only way to make it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found