- From the XCode schemes dropdown menu, select your app scheme and Generic iOS device as device
- Click Product -> Clean (
- Click Product -> Build For -> Testing (
- Right click the
.appfile using the Project Navigator, and select Show in Finder
- In Finder, the directory should contain a file called
Right click and choose the compress option to generate a
Using Command Line
To build the
.zip file from the command line, please follow these steps:
Change to the project directory and build for testing:
- Go to the DerivedData directory. To know the location of this directory, open Xcode and go to Preferences -> Locations.
Now you can create the zip file. In the DerivedData directory, go to the directory containing the name of your app and some random characters.