Skip to content

Commit 66669cf

Browse files
committed
Set email in environment when running register_new_device
This removes a tiny bit of annoying friction I keep bumping into when addressing internal requests to add a device to the Developer Portal.
1 parent d00bd60 commit 66669cf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

fastlane/Fastfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,15 @@ platform :ios do
596596
)
597597
end
598598

599+
# We're about to use `add_development_certificates_to_provisioning_profiles` and `add_all_devices_to_provisioning_profiles`.
600+
# These actions use Developer Portal APIs that don't yet support authentication via API key (-.-').
601+
# Let's preemptively ask for and set the email here to avoid being asked twice for it if not set.
602+
asc_user_email_key = 'FASTLANE_USER'
603+
unless ENV.key?(asc_user_email_key)
604+
UI.important("#{asc_user_email_key} value not found in the environment.")
605+
ENV[asc_user_email_key] = UI.input('Please provide your Apple Developer Program account email (this will not be saved): ')
606+
end
607+
599608
# Add all development certificates to the provisioning profiles (just in case – this is an easy step to miss)
600609
add_development_certificates_to_provisioning_profiles(
601610
team_id: get_required_env('EXT_EXPORT_TEAM_ID'),

0 commit comments

Comments
 (0)