Skip to content

register_devices

Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.

Supported Platforms: ios, mac

Registers new devices to the Apple Dev Portal

Details

This will register iOS/Mac devices with the Developer Portal so that you can include them in your provisioning profiles. This is an optimistic action, in that it will only ever add new devices to the member center, and never remove devices. If a device which has already been registered within the member center is not passed to this action, it will be left alone in the member center and continue to work. The action will connect to the Apple Developer Portal using the username you specified in your Appfile with apple_id, but you can override it using the username option, or by setting the env variable ENV['DELIVER_USER']. When using devices_file, blank lines and lines starting with # are ignored, so you can group devices, add notes, or comment out a device row without removing it.

Parameters & Options

Total options available: 8

Key Type Env Variable Default Required Description
devices Hash FL_REGISTER_DEVICES_DEVICES - No A hash of devices, with the name as key and the UDID as value
devices_file String FL_REGISTER_DEVICES_FILE - No Provide a path to a file with the devices to register. For the format of the file see the examples
api_key_path String - - No Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)
api_key Hash - - No Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-hash-option)
team_id String REGISTER_DEVICES_TEAM_ID - No The ID of your Developer Portal team if you’re in multiple teams
team_name String REGISTER_DEVICES_TEAM_NAME - No The name of your Developer Portal team if you’re in multiple teams
username String DELIVER_USER - No Optional: Your Apple ID
platform String REGISTER_DEVICES_PLATFORM ios No The platform to use (optional)

Examples

register_devices(
devices: {
"Luka iPhone 6" => "1234567890123456789012345678901234567890",
"Felix iPad Air 2" => "abcdefghijklmnopqrstvuwxyzabcdefghijklmn"
}
) # Simply provide a list of devices as a Hash
register_devices(
devices_file: "./devices.txt"
) # Alternatively provide a standard UDID export .txt file, see the Apple Sample (http://devimages.apple.com/downloads/devices/Multiple-Upload-Samples.zip)
register_devices(
devices_file: "./devices.txt", # You must pass in either `devices_file` or `devices`.
team_id: "XXXXXXXXXX", # Optional, if you"re a member of multiple teams, then you need to pass the team ID here.
username: "luka@goonbee.com" # Optional, lets you override the Apple Member Center username.
)
register_devices(
devices: {
"Luka MacBook" => "12345678-1234-1234-1234-123456789012",
"Felix MacBook Pro" => "ABCDEFGH-ABCD-ABCD-ABCD-ABCDEFGHIJKL"
},
platform: "mac"
) # Register devices for Mac

Source & Upstream