fastlane-old/pilot

Team selection not working

Closed this issue · 6 comments

JonB commented

Running pilot upload -u my_itc_account@email.com -s --verbose results in the interactive prompt

Multiple teams found, please enter the number of the team you want to use:
1) "Team 1" (123456)
2) "Team 2" (987865)

Choosing a team then successful uploads the IPA.

While running pilot upload -u my_itc_account@email.com -team_id 123456 -s --verbose results in

/Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/spaceship-0.15.1/lib/spaceship/tunes/tunes_client.rb:67:in `team_id=': Looks like your Apple ID is not enabled for iTunes Connect, make sure to be able to login online (RuntimeError)
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/spaceship-0.15.1/lib/spaceship/tunes/tunes_client.rb:95:in `select_team'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/spaceship-0.15.1/lib/spaceship/tunes/spaceship.rb:30:in `select_team'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pilot-1.1.0/lib/pilot/manager.rb:16:in `login'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pilot-1.1.0/lib/pilot/manager.rb:8:in `start'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pilot-1.1.0/lib/pilot/build_manager.rb:4:in `upload'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pilot-1.1.0/lib/pilot/commands_generator.rb:48:in `block (2 levels) in run'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pilot-1.1.0/lib/pilot/commands_generator.rb:120:in `run'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pilot-1.1.0/lib/pilot/commands_generator.rb:17:in `start'
    from /Users/blowej01/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/pilot-1.1.0/bin/pilot:6:in `<top (required)>'
    from /Users/blowej01/.rbenv/versions/2.1.5/bin/pilot:23:in `load'
    from /Users/blowej01/.rbenv/versions/2.1.5/bin/pilot:23:in `<main>'

Edit: Running pilot upload -u my_itc_account@email.com --team_name "My Nice Team Name" -s --verbose works fine!

JonB commented

If you need any more information then let me know!

Try

pilot upload -u my_itc_account@email.com --team_id 123456 -s --verbose

2 dashes in front of the team id

How can you specify team_id in Fastfile?

    pilot(
      ipa: "./build/build.ipa",
      skip_submission: true
    )

As team_id is not a part of pilot.

pilot --help
  pilot

  The best way to manage your TestFlight testers and builds from your terminal

  Commands:
    add    Adds a new external tester to a specific app (if given). This will also add an existing tester to an app.
    builds Lists all builds for given application
    export Exports all external testers to a CSV file
    find   Find a tester (internal or external) by their email address
    help   Display global or [command] help documentation
    import Create external testers from a CSV file
    list   Lists all registered testers, both internal and external
    remove Remove an external tester by their email address
    upload Uploads a new binary to Apple TestFlight

  Global Options:
    -u, --username STRING Your Apple ID Username (PILOT_USERNAME)
    -a, --app_identifier STRING The bundle identifier of the app to upload or manage testers (optional) (PILOT_APP_IDENTIFIER)
    -i, --ipa STRING     Path to the ipa file to upload (PILOT_IPA)
    -w, --changelog STRING Provide the what's new text when uploading a new build (PILOT_CHANGELOG)
    -s, --skip_submission  Skip the distributing action of pilot and only upload the ipa file (PILOT_SKIP_SUBMISSION)
    -p, --apple_id STRING The unique App ID provided by iTunes Connect (PILOT_APPLE_ID)
    -f, --first_name STRING The tester's first name (PILOT_TESTER_FIRST_NAME)
    -l, --last_name STRING The tester's last name (PILOT_TESTER_LAST_NAME)
    -e, --email STRING   The tester's email (PILOT_TESTER_EMAIL)
    -c, --testers_file_path STRING Path to a CSV file of testers (PILOT_TESTERS_FILE)
    -k, --wait_processing_interval  Interval in seconds to wait for iTunes Connect processing (PILOT_WAIT_PROCESSING_INTERVAL)
    --verbose
    -h, --help           Display help documentation
    -v, --version        Display version information

  Author:
    Felix Krause <pilot@krausefx.com>

  Website:
    https://fastlane.tools

  GitHub:
    https://github.com/fastlane/pilot

My bad I need to update pilot from 1.0.1 to 1.1.0.

@andreyslyusar Yeah, does it work now?

This issue was migrated to fastlane/fastlane#3267. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀