codemagic-ci-cd / cli-tools

Various utilities to managing Android and iOS app builds, code signing, and deployment.
https://codemagic.io/start/
GNU General Public License v3.0
243 stars 42 forks source link

Feature: register devices from file #329

Closed mohammedbabelly20 closed 1 year ago

mohammedbabelly20 commented 1 year ago
Demonstration of the command and its output ## File content ``` 00000000-000000000000001E 00000000-000000000000002E 00000000-000000000000003X ``` UDIDs in file: 1. Valid UDID, but the device is present. 2. Valid UDID, the device doesn't yet exists and will be registered 3. Invalid UDID ## Command ```shell app-store-connect register-devices-from-file -n iPhone UDIDs.txt ``` ## Output ``` Creating new Device: udid: 00000000-000000000000001E, name: iPhone, platform: IOS Failed to register a device: POST https://api.appstoreconnect.apple.com/v1/devices returned 409: There is a problem with the request entity - A device with number '00000000-000000000000001E' already exists on this team. Creating new Device: udid: 00000000-000000000000002E, name: iPhone, platform: IOS -- Device (Created) -- Id: H2985X3P8Q Type: devices Class: IPOD Name: iPhone Platform: IOS Status: ENABLED Udid: 00000000-000000000000002E Created Device H2985X3P8Q Invalid device UDID on line 4: '00000000-000000000000003X' ``` The syntax highlight demonstration image
artemii-yanushevskyi commented 1 year ago

Declining in favor of https://github.com/codemagic-ci-cd/cli-tools/pull/331.