Skip to main content

SeeTestAutomation - Generate Device Enablement File (DEF) Using XDEF

info

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 motivation of this tool is to enable distribution of apple provisioning profile, without sharing your apple developer account username and password.

XDef CLI Utility helps you to generate a Device Enablement file (.DEF) using your own iOS Developer profile account credentials.

Device Enablement Files will contain your developer certificate and mobile provision file and they will allow you to work with your iOS device and install applications on the device.

info

Prerequisites

  1. Installed SeeTestAutomation (version10.3 and above).
  2. To be assigned to valid Apple Developer Account.

Commands Description

commandparametersDescription
helpnonePrints help messages to the console
versionnonePrints the product version
teamsPrints the developer teams list for Apple ID
[-appleId <appleId>]Apple Id of the account
[-password <password>]Password of the Apple Id
[-json]Prints the data in JSON format
[-v]Verbose (print log to console)
defCreating def file from developer team
[-appleId <appleId>]Apple Id of the account
[-password <password>]Password of the Apple Id
[-teamId <teamId>]Team Id of the account (obtained from teams command)
-devicesPath <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)
logPath to log file
[-v]Verbose (print log to console)
info
  • Mac PC: The generated files will be located in <user directory>\xdef
info
  • Windows PC: The generated files will be located in <user directory>\AppData\Roaming

Examples

  1. The devices file is a text file, containing udids and names. Example:

            

        The tool will cross this device list with the devices that are already on account. Only new devices will be added to the account.

        The generated profile will contain all the devices that were on the account and the new ones.

      1.  This example will use the command 'teams' without the account parameters:

       

The user is required to insert Apple ID and password.

Note: after 10 failures in logging in, your developer account will be locked. Go to https://developer.apple.com/ in order to re-open it.  

This example will use the 'def' command  the account parameters and the team ID:

The def command will generate 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