Skip to main content
Version: 1.10.x

App Deployment

Deploying the App


To submit and distribute an IPA with the AppGuard SDK applied to the App Store, you must apply AppGuard Sign through the AppGuard Manager as a final step. AppGuard Sign is essential to ensure that the tampering detection feature of the IPA functions correctly.

danger

If AppGuard Sign is not applied to the IPA, the app may terminate abnormally due to security policies.

Applying AppGuard Sign

In the AppGuard Manager, select [Sign Register] and click the [Sign Register Application] button. iOS


Select the IPA file to register in the AppGuard Manager and drag & drop it into the [IOS Sign Register] window. iOS


Once the IPA file upload is complete, click the [Sign Register] button. iOS


After the signing process is completed, click the Close button. iOS


Once the registration is complete, you will be able to verify the registered details as shown below, and you can download the signed IPA by clicking the Down button. iOS

IPA Code Signing and Distribution

The IPA with AppGuard Sign applied must be code-signed using the customer's distribution certificate. We provide the iparesign.sh script to make it easy for customers to apply code signing with their certificate.

  1. Create a folder to perform the code signing, and copy the signed IPA file and the iparesign.sh script into this folder. iOS

  2. Launch a terminal, navigate to the folder where the code signing will be performed, and run the following command to proceed with code signing.

    $ cd [path to iparesign.sh]
    $ ./iparesign.sh --ipa [/path/to/your_app_appguarded.ipa]
  3. Logs will display the progress of the code signing process. Verify that it completes successfully, as shown in the log below.

    1. Check if an ipa file exists
    [success] "QATestGame_appguarded.ipa"

    2. unzip ipa package
    [success] "QATestGame_appguarded.ipa"

    . . .

    10. codesign the app
    /Users/inca/Downloads/iparesign/resigncompleted/Payload/xCode_1402_TestApp.app: replacing existing signature
    [success] codesign the app

    11. zip the package
    [success] "/Users/inca/Downloads/iparesign/resigncompleted/QATestGame_appguarded_resigned.ipa"
    (this ipa file has to upload at appstoreconnect.apple.com)
    ============= resign completed =============
    inca@c2211-001Macmini iparesign %
  4. Once the iparesign.sh script has been successfully executed, a signed IPA file resigncompleted/your_app_appguarded_resigned.ipa will be generated. You can submit this file to the App Store using [Transporter].

Detailed Explanation of iparesign.sh Script

The iparesign.sh is a Shell Script provided to help easily apply code signing to an IPA file using the customer’s certificate.

iparesign.sh --ipa path [--entitlements path] [--profile path] [--identity "Your Signing Identity"] [--out path]
OptionDescription
--ipaSpecifies the path to the IPA file to be code-signed.
--entitlementsSpecifies the path to the entitlements file.
--profileSpecifies the path to the provisioning profile for code signing.
--identitySpecifies the Signing Identity to be used for code signing.
--outSpecifies the output path for the signed IPA file.
caution

To use iparesign.sh for code signing, a distribution certificate must be installed on the PC being used.