

Open Xcode and navigate to the preferences menu, then select the Locations tab.

If you are running an earlier version of macOS, search for the last supported version of Xcode for your OS and download the appropriate Xcode release (the following steps will work with the vast majority of Xcode versions). If you are unsure of your macOS version, check by clicking on the apple in the top let corner of your screen and clicking “About This Mac” in the drop down menu. The most recent version is Xcode 11, but this will only run on macOS Mojave 10.14.4 or later. This link will list several versions of xCode available for download. If you do not have one, you can register one for free.). Xcode Download and Setupĭownload Xcode from the App Store here (Note: Y ou will need to have a developer account with Apple. Here, we will be walking through setting up and running an iOS simulator on a Mac using Xcode and Expo. I recently created my first React Native app, an implementation of Snake, and found some conflicting information on how to set up a simulation. To test the code, Expo, an open source platform for Javascript and React, can be used to test your code by downloading the Expo app onto your iOS or Android device.īut what if you didn’t want to change machines every time you wanted to check on changes to your code? You can run a device simulator on your machine. Unlike Swift or Java, apps written in React Native can be used on both Android and iOS devices, eliminating the need to re-write code for multiple devices. React Native is a framework based on React made for front-end mobile development. Note: This blog assumes you are running on a Apple desktop/laptop with macOS Creating Apps in React Native with an iOS Simulator
