Application not open on IOS simulator
See original GitHub issueDescription
sudo yarn run ios
It will open up the ios simulator but stop at Starting simulator...
and forever.
Have try
Make sure Xcode is installed and open it to accept the license agreement if it prompts you. You can install it from the Mac App Store.
Open Xcode's Preferences, the Locations tab, and make sure that the Command Line Tools menu option is set to something. Sometimes when the CLI tools are first installed by Homebrew this option is left blank, which can prevent Apple utilities from finding the simulator. Make sure to re-run npm/yarn run ios after doing so.
If that doesn't work, open the Simulator, and under the app menu select Reset Contents and Settings.... After that has finished, quit the Simulator, and re-run npm/yarn run ios.
Expected Behavior
open the RN application
Observed Behavior
What actually happened when you performed the above actions?
If there’s an error message, please paste the full terminal output and error message in this code block:
Error text goes here!
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
:react-native-scripts@1.5.0npm ls react-native
:react-native@0.48.4npm ls expo
: expo@21.0.2node -v
:v8.2.1npm -v
:5.3.0yarn --version
:0.27.5watchman version
: { “version”: “4.9.0” } Also specify:
- Operating system:OSX
- Phone/emulator/simulator & version: 11.0 ip6
Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you’re reporting.
Issues that come with minimal repro’s are resolved much more quickly than issues where a maintainer has to reproduce themselves.
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (5 by maintainers)
Top Results From Across the Web
xcode - iOS simulator is not launching - Stack Overflow
First of all quit your simulator. And then quit and restart Xcode. And then run your project. Restart xcode and the simulator. ios ......
Read more >Simulator not opening new builds | Apple Developer Forums
If I build my app in Xcode the simulator application no longer opens and when I open it manually the simulator will not...
Read more >Cannot launch the app on iOS simulator unless project clean ...
I have very similar problem - app cannot be started on iOS simulator. But for me cleanup doesn't help. App is written with...
Read more >Unable to deploy to iOS simulator - Microsoft Q&A
I follow all the instructions to pair to a Mac, it connects. The iOS simulator will launch. But it will not open the...
Read more >Can't launch iOS app on Xcode 12 simulator : RIDER-50673
Can't launch iOS app on Xcode 12 simulator · macOS 10.15.6 (19G2021) · Xcode 12.0 beta 6 (12A8189n) · Rider 2020.2.1 (#RD-202.6397.268) ·...
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 FreeTop 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
Top GitHub Comments
running:
sudo chown my_username ~/.expo
sudo chown my_username ~/.babel.json
solved my issue!
I can now run
npm start
withoutsudo
, and, more importantly,npm run ios
now works fine! App is now working on the simulator.Thank you so much for the help!
I had the same issue, it looked like it was hanging, but it must have been a slow internet connection, because I left it and about 5 minutes later Expo suddenly started installing and opening the app. I did not have to apply any of the above workarounds, just had to wait.