ignite: Xcode Simulator not found when running ios from a new Ignite project
What’s going on?
A default macOS Simulator doesn’t open when running ios project if the project is created with Ignite CLI.
If i generate the same base project with react-native then it does open the default iPhone X simulator.
Steps to reproduce
I created a project with
react-native init awesome
and then ran it with
react-native run-ios
and the Simulator opened and showed the app.
I created a project with
ignite n awesomeIgnite
and then ran it with
react-native run-ios
and no Simulator opens. An error instead:
Could not find iPhone X simulator
Error: Could not find iPhone X simulator
at resolve (/Users/mikec/Documents/code/mobile/awesomeIgnite/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13)
at new Promise (<anonymous>)
at runOnSimulator (/Users/mikec/Documents/code/mobile/awesomeIgnite/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10)
at Object.runIOS [as func] (/Users/mikec/Documents/code/mobile/awesomeIgnite/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12)
at Promise.resolve.then (/Users/mikec/Documents/code/mobile/awesomeIgnite/node_modules/react-native/local-cli/cliEntry.js:117:22)
ignite doctor results:
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
directory /Users/mikec/Documents/code/mobile/awesomeIgnite
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 processTicksAndRejections (internal/process/task_queues.js:86:5) code: 'ENOENT' }
^^^ -----[ DEBUG ]----- ^^^
I don’t have Yarn installed 😃
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (18 by maintainers)
If you run
rm -rf node_modulesthennpm installandnpm audit fixit will open the iPhone X emulator but will give another error:With bowser it worked fine but with andross it still having the issue, should I open a new issue?
On
react-native run-ios:If I run on Xcode it gets 52 errors on the issues panel:
I mentioned in comment 2 the simulator names work fine from the non Ignite project folder.
I also get the same build error as @cassianomon above.
Assume you mean
ignite-cli@3.0.0-beta.3which i got via npm. Is yarn still faster these days?@jamonholmgren just upgrading the RN version doesn’t resolve the build fail that @cassianomon mentions earlier in comment https://github.com/infinitered/ignite/issues/1401#issuecomment-480997544
New issue opened on the boilerplate project - https://github.com/infinitered/ignite-andross/issues/263
The latest version of Bowser (3.2.0) seems to fix this issue. Please re-try:
Note that the feature generating Detox tests is currently broken; that’s next on my list to work on.
The problem with
ignite doctorwhen yarn is not installed is fixed in #1404, which has been deployed as 2.2.4. Upgrade withnpm upgrade -g ignite-cli.I’m working on this (as well as the other errors reported). Thanks everyone for helping out!
This was mentioned in the Slack. Looks related to https://github.com/facebook/react-native/issues/24196 and https://github.com/infinitered/ignite-bowser/issues/164
Okay, can you either check the output for the actual error (it’s usually 20-50 lines up) or open the project in XCode and try building it to see what error it returns?