Search code examples
iosapp-store-connectfastlane

How to get iTunes connect Team ID and Team name?


I'm writing down an Appfile for fastlane, my problem is I already have the team_name and team_id in Apple Dev Center but I can't get the iTunes Connect ID/itc_team_id. I'm working with different team. How do I get it? Any guide would be great. Thanks


Solution

  • You can get it directly from Spaceship (See the "Login" section) (https://github.com/fastlane/fastlane/blob/master/spaceship/docs/iTunesConnect.md)

    Basically just type the following in a shell:

    $ irb
    irb> require "spaceship"
    irb> Spaceship::Tunes.login("iTunesConnect_username", "iTunesConnect_password")
    irb> Spaceship::Tunes.select_team
    

    You'll be presented with a list of teams your account belongs to, along with the numerical representation for that team.