question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application not open on IOS simulator

See original GitHub issue

Description

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.0
  • npm ls react-native:react-native@0.48.4
  • npm ls expo: expo@21.0.2
  • node -v:v8.2.1
  • npm -v:5.3.0
  • yarn --version:0.27.5
  • watchman version: { “version”: “4.9.0” } Also specify:
  1. Operating system:OSX
  2. 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:closed
  • Created 6 years ago
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

21reactions
dougbacelarcommented, Oct 26, 2017

running: sudo chown my_username ~/.expo sudo chown my_username ~/.babel.json

solved my issue!

I can now run npm start without sudo, and, more importantly, npm run ios now works fine! App is now working on the simulator.

Thank you so much for the help!

8reactions
johanvdbcommented, Feb 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found