Member-only story
How to run your first React Native App on macOS for iOS devices
I am currently working on React Native Apps and I thought to share the steps I do when I create a new React Native App through Xcode.
P.S. This guide is only for macOS users and target OS is iOS device.
Step 1: Installing Node and Watchman
Official guide suggests to use Homebrew
to install Node
and Watchman
. So first thing first, run this command to install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
After brew is installed, run these commands to install Node
and Watchman
respectively.
brew install node
brew install watchman
Make sure you have 8.3 or newer version of node.
Step 2: Installing Xcode
Open your AppStore and search Xcode
to install. Installing Xcode will also install the iOS Simulator and all the necessary tools to build your iOS app.
We shall also need to install the Xcode Command Line Tools.
- Open Xcode.
- Choose “Preferences…” from the Xcode menu.
- Go to the Locations tab and install the tools by selecting the most recent…