ignite: running react-native run-ios does not launch app

I’m trying to run the PizzaLocation app but When running react-native run-ios it outputs Build Succeeded but nothing launches. I’ve looked around online but haven’t had any luck finding anything.

I get the following output in terminal

** BUILD SUCCEEDED **



The following commands produced analyzer issues:
	Analyze Base/RCTModuleMethod.mm
	Analyze Modules/RCTUIManager.m
(2 commands with analyzer issues)

Installing build/Build/Products/Debug-iphonesimulator/PizzaApp.app
Launching org.reactjs.native.example.PizzaApp
org.reactjs.native.example.PizzaApp: 42784

And then in my other terminal window I see this, but nothing else happens from here.

Metro Bundler ready.

Loading dependency graph, done.
 BUNDLE  [ios, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1974/1974), done.

Steps to reproduce

  1. ignite new PizzaApp
    • Andross selected
    • No i18n
    • No Animation
  2. run react-native run-ios.

ignite doctor results:

System
  platform           darwin                                                                                                                 
  arch               x64                                                                                                                    
  cpu                4 cores                                                            Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz  
  directory          /Users/xxx/Documents/xxx/React/react-native/PizzaApp                                                       
vvv -----[ DEBUG ]----- vvv
{ Error: not found: yarn
    at getNotFoundError (/usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/node_modules/which/which.js:13:12)
    at Function.whichSync [as sync] (/usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/node_modules/which/which.js:131:9)
    at which (/usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/src/core-extensions/system-extension.js:113:22)
    at Command.module.exports [as run] (/usr/local/lib/node_modules/ignite-cli/src/commands/doctor.js:45:20)
    at process._tickCallback (internal/process/next_tick.js:68:7) code: 'ENOENT' }
^^^ -----[ DEBUG ]----- ^^^

react-native info

Environment:
  OS: macOS Sierra 10.12.6
  Node: 10.2.1
  Yarn: Not Found
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: Xcode 9.1 Build version 9B55
  Android Studio: Not Found

Packages: (wanted => installed)
  react: 16.3.1 => 16.3.1
  react-native: 0.55.1 => 0.55.1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (4 by maintainers)

Most upvoted comments

I was able to get this working. It still does not work if I just use react-native run-ios but if I run with react-native run-ios --simulator="iPhone 6s" or specifying another iPhone type it works.

As @gdowens mentioned, I followed those steps and it worked for me rm -rf ios/build then running react-native run-ios --simulator

Having the same issue in xcode 10

me too. try this maybe, it worked for me before but now the problem appear again

Xode -> file -> project setting for « pre user build system » choose « legacy »

Having the same issue in xcode 10

I’ve tried

  • setting all workspace/ project build and pre-build systems to “legacy”
  • deleting the build folder
  • running the run-ios with different specified devices

But every time my simulator opens, the app opens to the loading page, then crashes. It never gets pass the loading page.

But if I build the project from XCode everything works fine.

Any advice?

Did you figure out? I am having the same issue. it works with Xcode, but not in terminal (react-native run-ios)

Just going to put this here, because it comes up in search results and I’ve been trying to figure this out for several hours: If you are using react-native-splash-screen, make sure you do SplashScreen.hide() 🤦‍♂