fastlane: ITC Team ID specified in AppFile isn't being passed to connect_api; now I get "Multiple Teams found; unable to choose"

New Issue Checklist

Issue Description

#17153 says it fixed this issue, but to make a new report if we still have the problem. I still have the problem.

Haven’t had any troubles for weeks, but this showed up when trying to do an automated submission on September 25. Not sure what version of Fastlane I was on at that particular time, but I do run an update each week before submission. As of October 2, I was on Fastlane v.2.162.0 and still have the issue.

Command executed

Spaceship::ConnectAPI.login(<username>, <password>) itc_team_id is defined in the AppFile, which was done explicitly to solve a “multiple team” issue in the past.

Complete output when running fastlane, including the stack trace and command used
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0/rubygems/ext/builder.rb:165: warning: conflicting chdir during another chdir block
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0/rubygems/ext/builder.rb:173: warning: conflicting chdir during another chdir block
/usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/portal/ui/select_team.rb:97:in `select_team': \e[31m[!] Multiple Teams found; unable to choose, terminal not interactive!\e[0m (RuntimeError)
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/portal/portal_client.rb:73:in `select_team'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/connect_api/client.rb:65:in `login'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/connect_api/spaceship.rb:82:in `login'
	from Fastfile:62:in `block in parsing_binding'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/bin/fastlane:23:in `<top (required)>'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/bin/fastlane:23:in `load'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/bin/fastlane:23:in `<main>'
/usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/portal/ui/select_team.rb:97:in `select_team': Multiple Teams found; unable to choose, terminal not interactive! (RuntimeError)
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/portal/portal_client.rb:73:in `select_team'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/connect_api/client.rb:65:in `login'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/spaceship/lib/spaceship/connect_api/spaceship.rb:82:in `login'
	from Fastfile:62:in `block in parsing_binding'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/gems/fastlane-2.162.0/bin/fastlane:23:in `<top (required)>'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/bin/fastlane:23:in `load'
	from /usr/local/Cellar/fastlane/2.162.0/libexec/bin/fastlane:23:in `<main>' 

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 10.15.6
Ruby 2.7.1
Bundler? false
Git git version 2.27.0
Installation Source /usr/local/Cellar/fastlane/2.162.0/libexec/bin/fastlane
Host Mac OS X 10.15.6 (19G2021)
Ruby Lib Dir /usr/local/Cellar/ruby/2.7.1_2/lib
OpenSSL Version OpenSSL 1.1.1f 31 Mar 2020
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 11.5

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

`./Fastfile`
<redacted for private information; fastlane fails at the very first attempt to login with Spaceship in the first line of the lane definition (see above)>
`./Appfile`
apple_id "<redacted>"
itc_team_id "<redacted>"

fastlane gems

Gem Version Update-Status
fastlane 2.162.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.4.0
slack-notifier 2.3.2
atomos 0.1.3
CFPropertyList 3.0.2
claide 1.0.3
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.18.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
plist 3.5.0
public_suffix 4.0.6
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
babosa 1.0.3
colored 1.2
highline 1.7.10
commander-fastlane 4.4.6
excon 0.76.0
faraday 1.0.1
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.3
faraday-cookie_jar 0.0.7
faraday_middleware 1.0.0
fastimage 2.2.0
gh_inspector 1.1.3
json 2.3.0
mini_magick 4.10.1
rubyzip 2.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.0
dotenv 2.7.6
bundler 2.1.2
naturally 2.2.0
simctl 1.6.8
jwt 2.2.2
uber 0.1.0
declarative 0.0.20
declarative-option 0.1.0
representable 3.0.4
retriable 3.1.2
mini_mime 1.0.2
multi_json 1.15.0
signet 0.14.0
memoist 0.16.2
os 1.1.1
googleauth 0.13.1
httpclient 2.8.3
google-api-client 0.38.0
google-cloud-env 1.3.3
google-cloud-errors 1.0.1
google-cloud-core 1.5.0
rake 13.0.1
digest-crc 0.6.1
google-cloud-storage 1.29.0
emoji_regex 3.0.0
jmespath 1.4.0
aws-partitions 1.379.0
aws-eventstream 1.1.0
aws-sigv4 1.2.2
aws-sdk-core 3.109.0
aws-sdk-kms 1.39.0
aws-sdk-s3 1.82.0
uri 0.10.0
forwardable 1.3.1
logger 1.4.2
cgi 0.1.0
timeout 0.1.0
stringio 0.1.0
ipaddr 1.2.2
openssl 2.1.2
ostruct 0.2.0
strscan 1.0.3
date 3.0.0
delegate 0.1.0
fileutils 1.4.1
io-console 0.5.6
zlib 1.1.0
singleton 0.1.0
mini_portile2 2.4.0
nokogiri 1.10.10
racc 1.4.16
rexml 3.2.3
open3 0.1.0
yaml 0.1.0
psych 3.1.0
mutex_m 0.1.0
webrick 1.6.0

generated on: 2020-10-04

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

@ChristopherDrum Sounds great! Let me know the result if you don’t mind 😊 I’ll update the docs once I hear back from you just to make sure that everything here is 💯

You also may try to run something like

lane :temp do
    puts CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id)
end

If itc_team_id is present then something broke between 2.157.4 and 2.162.0.

@joshdholtz OK, exporting FASTLANE_ITC_TEAM_NAME worked. I don’t mind doing this, but the Appfile is rendered useless. Again, this is fine but it definitely is handy to consolidate things in there, rather than shell scripts on my CI doing exports.

Thanks for friendly ping! This should fall onto my Tuesday or Wednesday of this week! A few things from other fastlane related projects got interested in over the past few weeks along with some radar filing 🤷‍♂️ But nothing looks like it will be popping in this week so I should get to it soon ™️

Adding this to my queue to look into this week!