View this page in the latest version of Appian. Appian Provisioner Share Share via LinkedIn Reddit Email Copy Link Print On This Page Overview Appian Provisioner is an Appian-provided macOS command line tool that creates all the files required for signing and provisioning a custom-branded Appian iOS app. These files are used as your company's signature to indicate that your application has been signed and unmodified when uploading it to Apple's AppStore or installing onto a device. The Provisioner tool only needs to be run when your signing certificates have expired or when creating new certs. The tool does this by managing provisioning profiles, certificates, and Apple Push Notification Services (APNs) Keys on the Apple Developer account. If you run the tool with an existing account, there may already be some of these assets setup in your Apple account for other application identifiers. Whenever an action may potentially be dangerous or affect any existing apps linked to the account (e.g. revoking a certificate), the tool displays a clear warning and waits for further input on whether the action should be performed or not. Note: Starting with version 4, Appian Provisioner runs only on Mac computers with Apple silicon (M1 or later). Intel-based Macs aren't supported. Requirements To run Appian Provisioner, you need: A Mac with Apple silicon (M1 or later). To check, choose Apple menu > About This Mac. A Mac with Apple silicon shows a Chip line with a name such as "Apple M1". An Intel-based Mac shows a Processor line that names an Intel processor. macOS 15 or later. Apple's Command Line Tools. If they aren't installed, the Provisioner installs them for you. This can take several minutes and doesn't need administrator rights. Xcode isn't required. An internet connection. An Apple Developer account with access to "Developer Resources". If the Provisioner reports that you don't have enough access, ask the Account Holder or an Admin of your Apple Developer team to change your access. You don't need Homebrew or administrator rights on a Mac that meets these requirements. If you open Appian Provisioner on an Intel-based Mac, the Terminal window shows "The Appian Provisioner supports Apple silicon Macs only. Intel Macs are no longer supported." and waits for you to press Enter. Then the tool stops. It doesn't install anything or change your Mac. Run it on a Mac with Apple silicon. Why is it Required? Rebranding an iOS application is complicated due to the specific information found in the Info.plist and embedded signing entitlements. Some of this information includes the company’s Apple team ID, signing certificate ID, bundle ID, application name, build number, associated domains, etc. The Provisioner is used to streamline the process of creating and linking signing assets to the exact specifications we require for the rebranding process. The tool also gathers specific, non-sensitive account and application details into an XML file which is described in the Implementation section below. This way, the user doesn’t have to provide this information manually with the possibility of missing a step, causing further complications later. Implementation Details Environment Setup We require Apple’s Command Line Tools to be installed in conjunction with the open source mobile build and release tool fastlane. At the start of the process, the Provisioner will check for available updates to the Command Line Tools and install them if needed. A specific version of fastlane is installed in a temporary folder on your Mac. Appian Provisioner includes its own copy of Ruby and uses it on every supported Mac. Only the Provisioner uses this copy. It doesn't change the Ruby that comes with your Mac or any Ruby settings you have. The Terminal window shows "Using a self-contained Ruby 3.4.13" when it uses this copy. A disk image that you downloaded before version 4 doesn't include Ruby. In that case, and if the included Ruby can't be used for another reason, the Provisioner downloads the latest Appian Provisioner disk image and uses the Ruby from it. To skip this step, download the current disk image again. If the download fails, the Terminal window shows "The self-contained Ruby could not be downloaded." and the Provisioner continues. If the included Ruby can't be used, the Provisioner can use a compatible Ruby that is already on your Mac. If there isn't one, it asks before it installs Ruby with Homebrew. If Homebrew isn't installed yet, installing it can ask for an administrator password. If you answer no, the Terminal window shows "No changes made. Re-run the Provisioner when you are ready to continue." and the tool stops. When the Provisioner creates a new certificate, it will put the signing identity, i.e. the private key and certificate, in a locked keychain. Before we touch any keychains, we record what the default keychain was at the start and reset it at the end of the process. Apple Developer Login This process is handled entirely locally through interacting with the Apple Developer API - Appian never receives any login credentials. The tool begins this process by checking the validity of the provided username and password and if it requires Multi Factor Authentication (MFA) as shown below. Once we know the password is correct, the tool guides you through MFA validation, interacting solely with Apple. The tool keeps the resulting sign-in only on your computer and uses it for the rest of the session. Apple sometimes rejects the first sign-in step even when your password is correct. If that happens, the Provisioner tries again automatically and doesn't ask for your credentials again. Nothing is shown between the attempts. If every attempt fails, the Terminal window shows "Apple rejected the sign-in request 4 times in a row. This is not caused by a wrong password. Wait a few minutes and run the tool again." It also shows the Apple error code, for example "Apple returned error code(s): -900007". If Apple returns another error, the Terminal window shows Apple's message under "Apple/fastlane reported this problem:". For some errors it also tells you what to do. For example, if you haven't accepted an updated Program License Agreement, sign in at developer.apple.com/account with the same Apple ID, accept the agreement, and run the tool again. If Apple returns a temporary "Unauthorized Access" error in a later step, the Provisioner asks "Would you like to try the previous step again?" Enter y to try again. Once you are logged into the Apple Developer API, the Provisioner prompts for team selection or defaults to use the only registered team for that user. The Provisioner then checks to see if the user has access rights to "Developer Resources" as these are required privileges by Apple to view, create, update, or delete any iOS signing assets. Below is an example of a successful check for access to Developer Resources: An example of permission denied to Developer Resources: Finally the user decides if they want Appian to handle signing which allows for the customer to immediately distribute the app internally or via the AppStore. By responding yes, the customer is agreeing to provide any signing identities created in this process to Appian. Otherwise, all signing will be handled on the customer’s machine. The process for requesting signed builds and unsigned builds will be expanded upon in the “Certificate Selection” section below. App Selection The user is asked to provide an App Name which is used for naming the application identifier, provisioning profiles, and APNs Keys. For any bundle IDs already registered to the account, they will be displayed to the user as an option to select or they can choose to type in a new bundle ID. If an existing bundle ID was selected, the Provisioner will check to see if any App Identifiers are registered with that bundle ID and ask the user if they would like to proceed with the same settings. When creating a new app identifier or changing an existing one, you will be prompted to allow push notifications and iCloud. Appian requires app groups and associated domains to be enabled by default. The Provisioner then creates the app identifier if it doesn’t exist and enables these services. App groups and iCloud containers specific to the application identifier will be created and linked if needed. Please note that enabling the iCloud permissions is necessary if you intend to use the 'CHOOSE_FILE' upload method within the File Upload Component in your application. Certificate Selection The Provisioner gathers details on any existing certificates and displays a summary to the user. The user can select to sign with an existing certificate or create a new one. Apple restricts the number of certificates to two for Enterprise (inHouse) accounts and three for AppStore accounts. In the case that a new certificate needs to be created, the user can revoke an existing certificate and create a new one. A new keychain is generated with either a randomly encrypted password or a user defined password if they have opted out of signed builds (i.e. they do not want to supply Appian with their signing identity). If the user selects to create a new certificate, the resulting signing identity will be imported into the newly created keychain. The tool extracts non-sensitive information needed for the rebranding process - certificate label, sha, serial number, creation date, and expiration date. If the user selects to provide Appian with their signing identity, the newly created keychain will be sent to Appian with the encrypted password and stored securely by Appian and used only to sign your app. In the case where the user wants to switch from self signing to requesting signed builds, the Provisioner will attempt to locate the signing identity on the user’s computer utilizing the native Security tool. If the signing identity is successfully located, the user will need to provide their password so that the signing identity can be migrated over to the newly created keychain secured by the randomly generated encrypted password. APNs Key Selection If the application identifier includes push notifications, the user will have the choice to generate or use an existing APNs Key. If there are no APNs Keys available then the Provisioner will create one using the App Name. There can only be a maximum of two APNs Keys issued at a time due to Apple’s restrictions. In this scenario, the user has the option to revoke a key and create a new one. Appian requires the APNs Key to be provided in the packaged assets as it needs to be uploaded to our push notification service. The Provisioner will try to locate the APNs Key locally if it existed before the current session. Otherwise, the user can revoke and create a new APNs Key if none of the existing keys have been sent to Appian. Before the key is packaged, the Provisioner encrypts it to ensure a secure delivery. Profile Renewal The Provisioner will display any existing profiles registered with the selected application identifier and renew them using the selected signing certificate or APNs Key. If the user selected an Ad Hoc profile, they have the option to add and edit devices to that profile before it is created. Asset Packaging and Submission The Provisioner will package any Provisioning Profiles, APNs Keys, Keychains and associated encrypted passwords, along with the debug log file and an XML file containing non-sensitive information gathered from the Provisioner session. This package will need to be uploaded to your iOS configuration on the Branded Builds application on Forum. If you have any reservations about what is being sent to Appian, the output zip file from the Provisioner session can be expanded and viewed. Do not edit and repackage any of the contents as it may disrupt the rebranding process. Below is an example properties.xml: An example Provisioner assets folder: Once the Provisioner is completed, upload the zip file to the Mobile Branding site by editing an existing configuration or creating a new one. For any remaining questions, open a support case on forum.appian.com and an Appian representative will get back to you shortly. Troubleshooting "The Appian Provisioner supports Apple silicon Macs only": Run the tool on a Mac with Apple silicon (M1 or later). "Apple rejected the sign-in request 4 times in a row": Wait a few minutes and run the tool again. A wrong password isn't the cause. "Unable to install fundamental dependencies": The Command Line Tools didn't install. Run the tool again. If it keeps happening, open a support case. Program License Agreement: Sign in at developer.apple.com/account with the same Apple ID, accept the updated agreement, and run the tool again. "Unauthorized Access": This error is usually temporary. When the Provisioner asks "Would you like to try the previous step again?", enter y. Any other problem: The Terminal window shows the location of the error log, a file named log.txt in your home folder. Open a case with Appian Support and attach it. Feedback Was this page helpful? SHARE FEEDBACK Loading...