Testing your Protected iOS App
Extract the IPA
This section describes exporting the protected application to IPA format for local distribution.
NOTE This step is not required if the application is intended for distribution via Apple AppStore.
The IPA can be created using Xcode command line tools or using Xcode Organizer.
The IPA must be extracted using the same version of Xcode as was used for building the original XCarchive.
Using Command Line Tools
The IPA can be exported using the following command:
$ xcodebuild -exportArchive -archivePath <archive> -exportOptionsPlist ExportOptions.plist -exportPath <path>
Where:
is the full path to the archive
ExportOptions.plist is a plist file with export options
is the output folder where the IPA will be placed.
Using XCode Organizer
Locate the protected XCarchive using the Finder app and double-click.
Once Xcode Organiser opens, press the Distribute App button.
For local testing, select the Development option.
Leave the development distribution options at their default values.
Select Automatically manage signing
When the app has finished processing (this might take some time), export the app by pressing the ‘Export’ button. This will generate the IPA file.
Finally, select a folder to save the IPA file to.
Test your App
Now the IPA is extracted, it can be installed for testing. Locate the extracted IPA file using the Finder app.
Next open the Devices and Simulators app and install the application by dragging the file onto the chosen device.
You can now start the app from the device or simulator’s app launcher.
If the app doesn't install or operate correctly, see Troubleshooting your iOS App Protection.
Updated about 2 months ago