Creating an iOS release in Xcode

In order to submit to the AppStore, we need to build our application for distribution. Luckily, the Xcode project we initially created with react-native init has some of this preconfigured for us. First, we want to change our Build Configuration to disable features, such as the developer menu that we get while we are debugging.

Let's configure the iOS release:

  1. In Xcode, navigate to Product | Scheme | Edit Scheme… and select Run, and under the Info tab change Build Configuration from Debug to Release:
    Creating an iOS release in Xcode
  2. Target the iOS Device instead of the simulator:
  3. Finally, run the build from Product | Archive. The Organizer window will ...

Get Getting Started with React Native now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.