

Node_modules/react-native/scripts/ios-install-third-party.shĭownload dependencies that need to be downloadedĬat node_modules/react-native/scripts/ios-install-third-party.sh If you have previously installed the old react-native CLI command-line tool globally, uninstall it using NPM uninstall-g React-native cli to avoid some conflicts.ĭownload the React-Native IOS runtime dependency Enter the project directory cd AwesomeProject Start Xcode, click On Xcode in the upper left corner of the desktop, select Preferences, and click on the Locations menu to check whether a version of Command Line Tools is installed. This step installs the Xcode IDE, Xcode's command-line tools, and the iOS emulator at the same time.

You can download it from the App Store or from the Apple Developer website. React Native currently requires Xcode10 or higher.
#XCODE FOR MAC 10.22 INSTALL#
Use yarn to add the name of a third-party library instead of NPM install a third-party library. For example, use yarn to replace the NPM install command.

Yarn is a tool provided by Facebook to replace NPM and speed up the download of Node modulesĪfter yarn is installed, you can use yarn to replace NPM. Installing this tool can improve development-time performance (Packager can quickly catch changes to files for real-time refreshes). Watchman is a tool provided by Facebook to monitor file system changes. You can use it if you need to switch back to the official source After installing Node, it is recommended to set up an NPM image (taobao source) to speed up the process (or use the scientific web tools). If you have Installed Node, check whether the version is later than V10. On the CLI, run the following command to install Node and Watchman:ģ. Run a command on the MAC terminal to install HomebrewĢ. We recommend using Homebrew to install Node and Watchman.ġ. While you can use any editor to develop your app (write JS code), you still have to install Xcode to get the tools and environment you need to compile your iOS app. The dependencies you must install are Node, Watchman, and Xcode.
