Black screen in local build IOS app when using expo-dev-client - fresh install

See original GitHub issue

Summary

When starting an app that uses expo-dev-client from the command line in an iOS simulator, the app opens to a black screen and never connects to the expo dev server. This does not happen if the app is opened by tapping its icon (e.g., not launched with a URL), and it does not happen if expo-dev-client is not installed.

This is a duplicate of #16008.

Managed or bare workflow? If you have made manual changes inside of the ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

iOS

Package versions

@babel/core@7.16.12
expo-dev-client@0.8.2
expo-splash-screen@0.14.1
expo-status-bar@1.2.0
expo@44.0.5
react-dom@17.0.1
react-native-web@0.17.1
react-native@0.64.3
react@17.0.1

Environment

M1 Mac

  Expo CLI 5.0.3 environment info:
    System:
      OS: macOS 12.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.13.1 - ~/.local/share/asdf/installs/nodejs/16.13.1/bin/node
      Yarn: 1.22.15 - ~/.local/share/asdf/installs/nodejs/16.13.1/bin/yarn
      npm: 8.1.2 - ~/.local/share/asdf/plugins/nodejs/shims/npm
      Watchman: 2022.01.17.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.11.2 - /Users/jason/.local/share/asdf/installs/ruby/2.7.5/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    IDEs:
      Android Studio: 2020.3 AI-203.7717.56.2031.7935034
      Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~44.0.0 => 44.0.5
      react: 17.0.1 => 17.0.1
      react-dom: 17.0.1 => 17.0.1
      react-native: 0.64.3 => 0.64.3
      react-native-web: 0.17.1 => 0.17.1
    Expo Workflow: bare

Reproducible demo

  1. expo init TestApp, choosing the ‘blank’ template
  2. cd into TestApp
  3. expo install expo-dev-client
  4. expo prebuild
  5. yarn ios

Stacktrace (if a crash is involved)

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

13reactions
lukmccallcommented, Jan 25, 2022

Hi @jason0x43, I’m able to reproduce described behavior and I’ll try to fix that issue this week. Thanks for your report.

2reactions
colemerrickcommented, Feb 3, 2022

Hello @brentvatne. I work with @cvburgess. expo-dev-client@0.8.3 resolves our issue. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

app has black screen on device. wo… - Apple Developer
problem - app shows launch screen and then shows a black screen without any UI. ... Use this method to select a configuration...
Read more >
Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. ... Locally compile and run the iOS app in release mode....
Read more >
Launch iOS simulator from Xcode and getting a black screen ...
All new apps I create from scratch all fail with the same black screen problem. If I hit the home button on the...
Read more >
How to integrate react-native-firebase with Expo | Medium
A guide showing the new way of integrating react-native-firebase into Expo ... EAS Build or locally using expo run:android / expo run:ios ....
Read more >
How to Build and Distribute Any React Native App With New ...
An Android or iOS build of your app can take a few minutes and when ... To use Development Builds, install the expo-dev-client...
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