iOS CLI hangs on "Starting simulator..."
See original GitHub issueDescription
Installed create-react-native-app
cli on a new OSX machine that has never ran Xcode or react-native projects before.
Creating a new project with create-react-native-app myProjectName
then attempting to start it on iOS simulator via yarn ios
hangs at “Starting simulator…” indefinitely with no errors or descriptions.
Expected Behavior
When attempting to run the project on iOS simulator on OSX the command line script yarn ios
should not hang without some descriptive information.
Observed Behavior
I managed to resolve the issue with these steps:
- run
yarn eject
and chose react-native project structure - run
yarn ios
- iOS simulator runs as expected
After running an ejected project, I created another demo project using the CRNA cli and then it successfully ran on the simulator.
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
: 1.14npm ls react-native
: 0.55.4npm ls expo
: 27.0.2node -v
: 8.11.2npm -v
: 6.1yarn --version
: 1.6watchman version
: 4.9
Also specify:
- Operating system: OSX 10.13
- Phone/emulator/simulator & version: iPhone 8 & iOS 11.3
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:6
Top Results From Across the Web
iOS CLI hangs on "Starting simulator..." · Issue #672 - GitHub
Creating a new project with create-react-native-app myProjectName then attempting to start it on iOS simulator via yarn ios hangs at "Starting ...
Read more >Launching simulator freezes whole Mac - Apple Developer
I have a 2019 16 inch MacBook Pro running Catalina 10.15.5 with a strange problem. Just launching the Simulator can hard freeze the...
Read more >Appcelerator hangs indefinitely on “Launching iOS Simulator”
Appcelerator hangs indefinitely on “Launching iOS Simulator” · Tried building the project via Appcelerator Studio instead of the command line · Selected "Project" ......
Read more >When your iOS device or simulator stuck on a splash screen.
Even you reinstall the app, it does not be fixed. Here is a solution. Delete 'DeviceSupport' or retry a pairing your device.
Read more >Dealing With Problems With Running Tests | Detox
This page is about issues related to executing your Detox tests, typically triggered when running detox test (and not detox build, for example)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t know if this will help anyone. But it seems like I was just having trouble with my internet connection that’s why the Expo Client on my iOS simulator won’t launch.
So basically, I deleted the Expo Client on the simulator to reset the data. And when I tried to relaunch it with
yarn run ios
, it won’t open because I have a faulty internet connection. The next day, I tried it again without changing anything. It worked!Same here. Any other fixes?