DEV Community

Ariel Mejia
Ariel Mejia

Posted on

5

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.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs