bitrise-io / bitrise-steplib

New Bitrise StepLib
MIT License
156 stars 363 forks source link

[xcode-archive] fails at fetching devices if some are in the state "Ineligible for x days" #3791

Open chrisgblr opened 1 year ago

chrisgblr commented 1 year ago

Some of my iOS devices are in the state "Ineligible for x days" at: https://developer.apple.com/account/resources/devices/list

Screenshot 2023-04-04 at 13 35 01
Fetching Apple Developer Portal devices
Failed to execute Step main logic:
  failed to manage code signing: failed to ensure test devices: failed to fetch devices: failed to query Developer Portal: invalid device status p, stacktrace: /private/var/folders/dw/lz_9l61x0y9089f673sqt55h0000gn/T/2230338121/devices.rb:63:in `map_device_status_to_api_status'
  /private/var/folders/dw/lz_9l61x0y9089f673sqt55h0000gn/T/2230338121/devices.rb:15:in `block in list_devices'
  /private/var/folders/dw/lz_9l61x0y9089f673sqt55h0000gn/T/2230338121/devices.rb:8:in `each'
  /private/var/folders/dw/lz_9l61x0y9089f673sqt55h0000gn/T/2230338121/devices.rb:8:in `list_devices'
  main.rb:63:in `<main>'

It seems like it's only a mapping issue: map_device_status_to_api_status Locally I can create an archive with Xcode (14.2) therefore I think it should be possible on bitrise as well.

dwolfand commented 2 months ago

We are having this same issue when adding new devices that are in the "Processing" status.

image