Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify username in the command line for Fastlane?

Tags:

ios

fastlane

I'm trying to pass in the apple ID to Fastlane as a command line option so all users and our build servers can use the same script.

MacBook-Pro-6:whisper-ios Nick$ fastlane hockeyglobal username:[email protected]
[18:00:44]: -------------------------------------------------
[18:00:44]: --- Step: Verifying required fastlane version ---
[18:00:44]: -------------------------------------------------
[18:00:44]: fastlane version valid
[18:00:44]: ------------------------------
[18:00:44]: --- Step: default_platform ---
[18:00:44]: ------------------------------
[18:00:44]: Driving the lane 'hockeyglobal' 🚀
[18:00:44]: ------------------
[18:00:44]: --- Step: sigh ---
[18:00:44]: ------------------

+-------------------------------------+-----------------------+
|                   Summary for sigh 1.8.0                    |
+-------------------------------------+-----------------------+
| adhoc                               | true                  |
| skip_install                        | false                 |
| development                         | false                 |
| force                               | false                 |
| app_identifier                      | sh.whisper.whisperapp |
| team_id                             | B3NYR7PARX            |
| ignore_profiles_with_different_name | false                 |
| skip_fetch_profiles                 | false                 |
| skip_certificate_verification       | false                 |
+-------------------------------------+-----------------------+

[18:00:45]: To not be asked about this value, you can specify it using 'username'
Your Apple ID Username: 

Maddeningly, username:[email protected] seems to go completely unnoticed by Fastlane, as does apple_id:[email protected], -u [email protected] and everything else I've tried. What am I doing wrong?

like image 748
Nick Locking Avatar asked Jul 06 '16 01:07

Nick Locking


People also ask

What is Fastlane gem?

fastlane is a tool for iOS and Android developers to automate tedious tasks like generating screenshots, dealing with provisioning profiles, and releasing your application.


Video Answer


1 Answers

It will use the value of apple_id in your fastlane/Appfile. Make sure you're running the command from the folder that fastlane/ is in.

like image 188
lawrence Avatar answered Nov 08 '22 16:11

lawrence