fastlane/fastlane

`fastlane match appstore` fails when generating tvOS profile

m4p opened this issue ยท 2 comments

m4p commented

New Issue Checklist

Issue Description

Adding a provision profile for a TopShelf extension on tvOS fails, because call to appstoreconnectapi/list_devices fails beforehand.
After removing UNIVERSAL from device.rb (See here.) everything works. UNIVERSAL is not a documented Possible Value for filter[platform] according to the documentation.

I'm happy to contribute a PR, but I don't know if UNIVERSAL is required somewhere else. Please advise.

Command executed

bundle exec fastlane match appstore -o tvos -a com.myApp.Top-Shelf

Complete output when running fastlane, including the stack trace and command used
 [16:25:54]: An error occurred while verifying your certificates and profiles with the Apple Developer Portal.
[16:25:54]: If you already have your certificates stored in git, you can run `fastlane match` in readonly mode
[16:25:54]: to just install the certificates and profiles without accessing the Dev Portal.
[16:25:54]: To do so, just pass `readonly: true` to your match call.

Looking for related GitHub issues on fastlane/fastlane...

bundler: failed to load command: fastlane (/Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/bin/fastlane)
/Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/spaceship/lib/spaceship/connect_api/api_client.rb:218:in handle_response': [!] { (Spaceship::UnexpectedResponse) "errors" : [ { "id" : "9a089570-f35d-4979-82c2-967ffe8523cc", "status" : "400", "code" : "PARAMETER_ERROR.INVALID", "title" : "A parameter has an invalid value", "detail" : "A parameter 'filter[platform]' has an invalid value : 'Empty filter values are not supported.'", "source" : { "parameter" : "filter[platform]" } } ] } from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/spaceship/lib/spaceship/connect_api/provisioning/client.rb:61:in proxy_get'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/spaceship/lib/spaceship/connect_api/provisioning/client.rb:29:in get' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/spaceship/lib/spaceship/connect_api/provisioning/provisioning.rb:170:in get_devices'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/3.2.0/forwardable.rb:240:in get_devices' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/spaceship/lib/spaceship/connect_api/models/device.rb:56:in all'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/spaceship/lib/spaceship/connect_api/models/device.rb:113:in devices_for_platform' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/portal_fetcher.rb:53:in devices'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/portal_cache.rb:97:in devices' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/generator.rb:110:in generate_provisioning_profile'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/runner.rb:279:in fetch_provisioning_profile' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/runner.rb:106:in block (2 levels) in run'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/runner.rb:105:in loop' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/runner.rb:105:in block in run'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/runner.rb:104:in each' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/runner.rb:104:in run'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/commands_generator.rb:69:in block (3 levels) in run' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/commands_generator.rb:186:in run' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/match/lib/match/commands_generator.rb:26:in start'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in take_off' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.219.0/bin/fastlane:23:in <top (required)>'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/bin/fastlane:25:in load' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/bin/fastlane:25:in <top (required)>'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/cli/exec.rb:63:in load' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/cli/exec.rb:63:in kernel_load'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/cli/exec.rb:28:in run' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/cli.rb:494:in exec'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/cli.rb:30:in dispatch'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/cli.rb:24:in start'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/exe/bundle:49:in block in <top (required)>' from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/lib/bundler/friendly_errors.rb:130:in with_friendly_errors'
from /Users/map/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.2.13/exe/bundle:37:in <top (required)>' from /Users/map/.rbenv/versions/3.2.2/bin/bundle:25:in load'
from /Users/map/.rbenv/versions/3.2.2/bin/bundle:25:in `

'

Environment

๐Ÿšซ fastlane environment ๐Ÿšซ

Stack

Key Value
OS 14.2
Ruby 3.2.2
Bundler? true
Git git version 2.39.3 (Apple Git-145)
Installation Source ~/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/bin/fastlane
Host macOS 14.2 (23C5047e)
Ruby Lib Dir ~/.rbenv/versions/3.2.2/lib
OpenSSL Version OpenSSL 3.1.4 24 Oct 2023
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 15.2
Swift Version 5.9.2

System Locale

Error
No Locale with UTF8 found ๐Ÿšซ
`./fastlane/Appfile`
# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem Version Update-Status
fastlane 2.219.0 โœ… Up-To-Date

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-versioning 0.4.4 ๐Ÿšซ Update available
fastlane-plugin-aws_s3 2.1.0 โœ… Up-To-Date
Loaded gems
Gem Version
error_highlight 0.5.1
did_you_mean 1.6.3
syntax_suggest 1.0.2
bundler 2.2.13
pathname 0.2.1
tsort 0.1.1
shellwords 0.1.0
digest 3.1.1
rake 13.1.0
base64 0.2.0
nkf 0.2.0
rexml 3.2.6
CFPropertyList 3.0.7
public_suffix 5.0.4
addressable 2.8.6
rubyzip 2.3.2
apktools 0.7.4
artifactory 3.0.17
atomos 0.1.3
aws-eventstream 1.3.0
aws-partitions 1.896.0
aws-sigv4 1.8.0
jmespath 1.6.2
aws-sdk-core 3.191.3
aws-sdk-kms 1.77.0
aws-sdk-s3 1.144.0
babosa 1.0.4
claide 1.1.0
colored 1.2
colored2 3.1.2
highline 2.0.3
commander 4.6.0
declarative 0.0.20
digest-crc 0.6.5
domain_name 0.6.20240107
dotenv 2.8.1
emoji_regex 3.2.3
excon 0.110.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
multipart-post 2.4.0
faraday-multipart 1.0.4
faraday-net_http 1.0.1
faraday-net_http_persistent 1.2.0
faraday-patron 1.0.0
faraday-rack 1.0.0
faraday-retry 1.0.3
ruby2_keywords 0.0.5
faraday 1.10.3
http-cookie 1.0.5
faraday-cookie_jar 0.0.7
faraday_middleware 1.2.0
fastimage 2.3.0
gh_inspector 1.1.3
jwt 2.8.1
multi_json 1.15.0
os 1.1.4
signet 0.19.0
googleauth 1.8.1
httpclient 2.8.3
mini_mime 1.1.5
trailblazer-option 0.1.2
uber 0.1.0
representable 3.2.0
retriable 3.1.2
google-apis-core 0.11.3
google-apis-androidpublisher_v3 0.54.0
google-apis-playcustomapp_v1 0.13.0
google-cloud-env 1.6.0
google-apis-iamcredentials_v1 0.17.0
google-apis-storage_v1 0.31.0
google-cloud-errors 1.4.0
google-cloud-core 1.7.0
google-cloud-storage 1.47.0
json 2.7.1
mini_magick 4.12.0
naturally 2.2.1
optparse 0.4.0
plist 3.7.1
security 0.1.5
simctl 1.6.10
terminal-notifier 2.0.0
unicode-display_width 2.5.0
terminal-table 3.0.2
tty-screen 0.8.2
tty-cursor 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
nanaimo 0.3.0
xcodeproj 1.24.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.1
mime-types-data 3.2023.1205
mime-types 3.5.2
fastlane-plugin-aws_s3 2.1.0
fastlane-plugin-versioning 0.4.4
slack-notifier 2.3.2
xcresult 0.2.1
xcov 1.7.5

I was asking something similar in #21921, it looks is the same issue.
I will close it and follow this one

Adding more info

Regression Information

Breaking version: 2.218.0, 2.219.0
Last working version: 2.217.0