DEV Community

Ariel Mejia
Ariel Mejia

Posted on

Open Successfully iOS Simulator with React Native & Expo

There are some downsides in the process to run IOS Simulator using Expo, here is a little guide to fix these issues:

Install X Code

Here a link to install
Xcode

Install Xcode Command Line Tools

This is a tricky section as at the first installation it looks like there is a Command Line Tools already selected, but it is not, you can find it in Xcode > Preferences > Locations so we need to click the option that appears to set the Command Line Tools path

Image description

Install Watchman

brew update
brew install watchman
Enter fullscreen mode Exit fullscreen mode

Run Expo

npx expo start
Enter fullscreen mode Exit fullscreen mode

and press i to select ios simulator

Fixes

  • The easiest solution is to restart the computer.
  • The second solution is to delete node_modules folder and package-lock.json, then run npm install, then run npx expo start.

In Summary

The sections where most issues to run iOS Simulator are:

  • User has not select Command Line Tools
  • Sometimes previous attempts to make it run can produce issues, to avoid this just delete node_modules and re-run npm install.

Top comments (0)