Skip to main content
Skip table of contents

Signing apps externally on MacOS

Blue Cedar supports signing iOS apps on macOS, and signing Android apps on macOS or Linux.

To sign Android apps on Windows, see Signing Android apps on Windows (unsupported).

Exporting for external code signing

This process assumes that you have successfully applied policies to secure an app via the console and included a valid signing profile. See the policy console documentation for information about securing an app, and Using and configuring signing profiles for information about signing profiles.

When you have secured an app for external signing and included a signing profile, you export a zip file and sign the app outside the console. This zip file includes:

  • A copy of the secured app 
  • All information required to sign the app
  • A simple script ( to run on a macOS or Linux signing server

The external signing option requires a signing profile to include with the secured app. Applying the signing profile in the policy console validates the signing parameters for use with your app, even though it does not sign the app.

If you have successfully secured the app by applying policies, the Export for Signing button becomes active. Click it to download the app with its signing information.

Using the exported zip file

Export for Signing downloads a zip file (

Signing requirements


Sign iOS apps on a Mac (macOS 10.12+) with Xcode 8.3.2+ and your code signing identity.


Sign Android apps on a macOS or Linux server with Android Studio SDK, including build-tools 29.0.2+. The signing process uses apksigner and zipalign, which are included in the build-tools.


The signing script requires you to have Python 3 installed on your signing server. If needed, download the latest Python 3 here:

Note that macOS Catalina already has Python 3 installed. 

Build tools

You may need to confirm that the build-tools location is in your command path. On the Mac signing server, find the installation folder in Android Studio > Configure > SDK Manager. Open a Terminal window and check the path:

$ echo $PATH

Find the path to the build-tools under the installation folder, and add it to the search path, for example:

$ PATH=$PATH:/Users/jlennon/Library/Android/sdk/build-tools/29.0.3/

To sign the app using the contents of the zip file:

  • On your macOS or Linux server, extract the contents of the zip file. 

  • In the directory with the extracted files, make executable:

    $ cd exported-com.qwe.myapp 
    $ chmod +x
  • Run the script:

    $ sh

Optionally, you can specify the output filename, for iOS:

$ sh -o output_filename.ipa

For Android:

$ sh -o output_filename.apk

If you don't specify an output filename, the signing script displays the filename when complete.

Note: Do not specify the input filename.

Running the signing script

When you integrate your app and choose "Sign externally", the platform produces a zip file with these contents:

  • The integrated app (.apk or .ipa)
  • A script ( which calls the codesign script (written in Python)
  • The script
  • A common_utils folder with a set of Python utilities

Use ./ to run the signing script, as described under Using the exported zip file.

  • If the signing profile details (including keystore for Android and provisioning profile for iOS) were included during integration on the platform, the signing script signs the integrated app.
  • If the signing profile details were not provided on the platform, the signing script prompts for those details. The signing process requires these details to validate, align, and sign the integrated app.

To override the signing profile details bundled with the app during integration, you can use the signing script to pass in these parameters.


Signing script flagDescription
-k, --keystoreThe location of the keystore ‚Äčto sign the Android app with
-a, --aliasThe alias for the provided keystore
-p, --passwordThe password for the provided keystore
-o, --outputThe output location for the signed Android app


Signing script flagDescription
-a, --appThe iOS app you would like to sign
-i, --identityThe signing identity to use for signing
-p, --profileThe provisioning profile to sign the app
-e, --entitlementsThe signing entitlements to sign the app
-o, --outputThe output location for the signed iOS app
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.