AS - Generate Device Enablement File (DEF) Using XDEF
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
The purpose of this tool is to enable the distribution of Apple provisioning profiles, without sharing your apple developer account username and password.
The XDef CLI Utility lets you generate a Device Enablement file (.DEF) using your own iOS Developer profile account credentials.
Device Enablement Files contain your developer certificate and mobile provision file and they allow you to work with your iOS device and install applications on the device.
Once you generate a DEF file you can import it to the Studio.
You must be assigned to a valid Apple Developer Account.
Commands Description
Command | Parameters | Description |
---|---|---|
help | none | Prints help message to the console |
version | none | Prints the product version |
teams | [-appleId <appleId>] - Apple Id of the account [-password <password>] - The password of the Apple Id [-json] - Prints the data in JSON format [-v] - Verbose (print log to console) | Prints the developer teams list for Apple ID |
def | [-appleId <appleId>] - Apple Id of the account [-password <password>] - The password of the Apple Id [-teamId <teamId>] - Team Id of the account (obtained from teams command) -device path <devicesPath> - Path to details of devices to be added to profile (the format is udid,devicename) -p12Pwd <p12Pwd> - Password for saving the p12 file / reloading it [-v] - Verbose (print log to console) | Creating a def file from the developer team |
log | [-v] Verbose (print log to console) | Path to log file |
-
Mac PC: The generated files will be located in <user directory>\xdef.
-
Windows PC: The generated files will be located in <user directory>\AppData\Roaming.
Examples
- The devices file is a text file, containing udids and names. Example:
The tool crosses this device list with the devices that are already on account. Only new devices are added to an account. The generated profile contains all the devices that were on the account and the new ones.
- This example uses the command 'teams' without the account parameters:
You are required to insert an Apple ID and password.
After 10 failures in logging in, your developer account is locked. Go to https://developer.apple.com/ to re-open it.
- This example uses the 'def' command with the account parameters and the team ID:
The def command generates a .p12 file on your computer. The .p12 file is a new development certificate on your apple account. The file can be located on \xdef\apple-accounts\<Apple ID>\<team ID\keys.
The def file is located on \xdef\apple-accounts\<Apple ID>\<team ID\def