pilot/lib/pilot/build_manager.rb in fastlane-2.184.1 vs pilot/lib/pilot/build_manager.rb in fastlane-2.185.0
- old
+ new
@@ -364,9 +364,12 @@
# If App Store Connect API token, use token.
# If itc_provider was explicitly specified, use it.
# If there are multiple teams, infer the provider from the selected team name.
# If there are fewer than two teams, don't infer the provider.
def transporter_for_selected_team(options)
+ # Ensure that user is authenticated
+ start(options)
+
# Use JWT auth
api_token = Spaceship::ConnectAPI.token
unless api_token.nil?
api_token.refresh! if api_token.expired?
return FastlaneCore::ItunesTransporter.new(nil, nil, false, nil, api_token.text)