Set up React Native and Expo for iOS
Node, Watchman and CocoaPods, then build and run your app in the simulator.
First install Xcode and the iOS simulator, and Homebrew. Then:
- Node.js 22.11 or newer, from nodejs.org or with
brew install node. - Watchman (recommended by React Native for faster file watching):
brew install watchman - CocoaPods:
sudo gem install cocoapods - Command line tools: in Xcode, Settings → Locations, pick the newest version under Command Line Tools.
Build and run
For an Expo project, from its folder:
npx expo run:ios
This compiles the app, installs it in the simulator and starts Metro. After that, npx expo start and pressing i relaunches it without rebuilding. Watch the simulator through Screen Sharing.