spaceship/lib/spaceship/portal/ui/select_team.rb in fastlane-2.116.0 vs spaceship/lib/spaceship/portal/ui/select_team.rb in fastlane-2.116.1
- old
+ new
@@ -65,18 +65,25 @@
teams.each_with_index do |team, i|
# There are 2 different values - one from the login page one from the Dev Team Page
return team['teamId'] if team['teamId'].strip == team_id
return team['teamId'] if team['currentTeamMember']['teamMemberId'].to_s.strip == team_id
end
- puts("Couldn't find team with ID '#{team_id}'")
+ # Better message to inform user of misconfiguration as Apple now provides less friendly error as of 2019-02-12
+ # This is especially important as Developer Portal team IDs are deprecated and should be replaced with App Store Connect teamIDs
+ # "Access Unavailable - You currently don't have access to this membership resource. Contact your team's Account Holder, Josh Holtz, or an Admin."
+ # https://github.com/fastlane/fastlane/issues/14228
+ puts("Couldn't find team with ID '#{team_id}'. Make sure your are using the correct App Store Connect team ID and have the proper permissions for this team")
end
if team_name.length > 0
# User provided a value, let's see if it's valid
teams.each_with_index do |team, i|
return team['teamId'] if team['name'].strip == team_name
end
- puts("Couldn't find team with Name '#{team_name}'")
+ # Better message to inform user of misconfiguration as Apple now provides less friendly error as of 2019-02-12
+ # "Access Unavailable - You currently don't have access to this membership resource. Contact your team's Account Holder, Josh Holtz, or an Admin."
+ # https://github.com/fastlane/fastlane/issues/14228
+ puts("Couldn't find team with Name '#{team_name}. Make sure you have the proper permissions for this team'")
end
return teams[0]['teamId'] if teams.count == 1 # user is just in one team
unless self.class.interactive?