Uses installrapp.com to create and manage Provisioning Profiles in the Apple Developer Portal. This allows you to install your Titanium apps directly to devices and create AdHoc builds without ever logging into the Apple Developer Portal.
Turns this:
ti build device -p ios --developer-name "Jeff Bonnes (1234ABCDEF)" --pp-uuid 2fe75116-4c12-4632-8f2f-6410384abb57
Into this:
ti build --auto-device
and
ti build --target dist-adhoc -p ios --distribution-name "Geeks Inc Pty Ltd (7AG52ANMT2)" --pp-uuid 0b030407-a1ba-4a31-8365-1bfd23871b02 --output-dir ~\Desktop
Into this:
ti build --auto-adhoc
Need to use your Installr API Key and enter your Apple Developer Portal details (including team). We use everything else from your tiapp.xml to create the App Identifer and Profiles (Development, AdHoc, and Store) and install them into your KeyChain.
You can setup your Installr key in your .bash_profile:
export INSTALLR_API_TOKEN=myInstallrAPiToken
or in your tiapp.xml
<property name="installr.api_token">ENTER_INSTALLR_API_TOKEN_HERE</property>
tiapp.xml takes presedence and will override the global setting so you can have per app API tokens.
tiadp has two parts:
- a script manages your Installr and Apple Developer Portal details.
- A CLI Plug-in
To manage our Apple Developer Portal details, use the tiadp command:
usage: tiadp <command> <adp login email/username>
available commands:
tiadp add
- add a new logintiadp list
- shows all adp logins (email, masked password, team) savedtiadp remove
- removes a logintiadp change
- change the password for an entry
To use the plug-in, just use the flags --auto-device or --auto-adhoc after ti build
. You will be prompted for all details. The plug-in will even create Application Identifiers and Provisioning Profiles for you. You must have a certificate installed on your machine that matches the certificate in the Apple Developer Portal.
The CLI plug-in hooks into the CLI at the cli:go
step, which is before the CLI arguments are parsed.
Note: Once you make your choices for the first time, they are cached in a ~\tiapd.json file. This makes is quicker as the plug-in doesn't need to query Installr everytime you build. If you would like to get prompted again, use the --force
flag.
ti build --auto-device --force
Use the ti-installr-hook an uploading a IPA to installrapp.com is a easy as ti build --auto-adhoc --installr