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
- ignite new PizzaApp
- Andross selected
- No i18n
- No Animation
- 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)
I was able to get this working. It still does not work if I just use
react-native run-iosbut if I run withreact-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
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
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()🤦♂