我正在为fastlane
编写一个Appfile
,我的问题是我已经在苹果开发者中心中有了team_name
和team_id
,但我无法获得/itc_team_id
。 我正在与不同的团队合作。 我该如何获取它?任何指南都将非常感谢。谢谢。
我正在为fastlane
编写一个Appfile
,我的问题是我已经在苹果开发者中心中有了team_name
和team_id
,但我无法获得/itc_team_id
。 我正在与不同的团队合作。 我该如何获取它?任何指南都将非常感谢。谢谢。
如果您不在自己的 Mac 上,您可以通过 iTunes Connect 网站获取它。
contentProvider
对象的 associatedAccounts
数组中获取您的 iTunes Connect IDs - 名为 contentProviderId
的条目反映了 iTunes Connect ID,查找 name
值以选择正确的 ID来源:https://github.com/fastlane/fastlane/issues/4301#issuecomment-253461017
您可以直接从 Spaceship 获取(请参见“登录”部分)(https://github.com/fastlane/fastlane/blob/master/spaceship/docs/iTunesConnect.md)
基本上只需在 shell 中输入以下内容:
$ irb
irb> require "spaceship"
irb> Spaceship::Tunes.login("iTunesConnect_username", "iTunesConnect_password")
irb> Spaceship::Tunes.select_team
您将会看到一个您账户所属的团队列表,同时也会提供该团队的数字代表。不要试图手动获取,只需在不指定团队ID的情况下运行fastlane。一旦需要选择,fastlane将列出所有可用的iTunes Connect团队及其ID,然后您可以存储这个数字。
itc_team_id
,但我正在构建一个 NodeJS 应用程序,在那里运行一个 shell
命令 fastlane
。基本上,这是一个自动化构建过程,我不需要通过覆盖 Appfile 并放置 itc_team_id
来回答/选择 itc_team_id
。顺便说一下,你们的软件很好。 - Calvin Ferrandofastlane produce
如果您在多个团队中,它将显示:
[16:36:43]: Your Apple ID Username: youremail@icloud.com
Available session is not valid any more. Continuing with normal login.
Multiple teams found on the Developer Portal, please enter the number of the team you want to use:
1) 89******8K "B******d Incorporated" (Company/Organization)
2) B8******ZP "Sultanmyrza Kasymbekov" (Individual)
你应该选择一个后,它会再次询问你。
[16:38:19]: [DevCenter] App 'co.brainfood.brainfood' already exists, nothing to do on the Dev Center
Available session is not valid any more. Continuing with normal login.
Multiple App Store Connect teams found, please enter the number of the team you want to use:
Note: to automatically choose the team, provide either the App Store Connect Team ID, or the Team Name in your fastlane/Appfile:
Alternatively you can pass the team name or team ID using the `FASTLANE_ITC_TEAM_ID` or `FASTLANE_ITC_TEAM_NAME` environment variable
itc_team_id "1******12"
or
itc_team_name "B******d Incorporated"
1) "B******d Incorporated" (1*******2)
2) "Sultanmyrza Kasymbekov" (1******7)
将下列代码添加到你的 Fastfile
中,然后运行 fastlane getTeamNames
lane :getTeamNames do
require "spaceship"
clientTunes = Spaceship::Tunes.login("{appleID}", "{applePassword}")
client = Spaceship::Portal.login("{appleID}", "{applePassword}")
strClientTunes = ""
clientTunes.teams.each do |team|
UI.message "#{team['contentProvider']['name']} (#{team['contentProvider']['contentProviderId']})"
strClientTunes << "#{team['contentProvider']['name']} (#{team['contentProvider']['contentProviderId']})||"
end
File.write('ItunesTeamNames', strClientTunes[0..-3])
strDevPortal = ""
client.teams.each do |team|
UI.message "#{team['name']} (#{team['teamId']})"
strDevPortal << "#{team['name']} (#{team['teamId']})||"
end
File.write('DevTeamNames', strDevPortal[0..-3])
end
我正在使用Fastlane,通过一个登录来管理多个账户。
fastlane match
fastlane deliver
fastlane spaceship
[✔]
[16:37:57]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
Username: you@youremail.com
Logging into to App Store Connect (you@youremail.com)...
Successfully logged in to App Store Connect
Logging into the Developer Portal (you@youremail.com)...
Successfully logged in to the Developer Portal
---------------------------------------
| Welcome to the spaceship playground |
---------------------------------------
Enter docs to open up the documentation
Enter exit to exit the spaceship playground
Enter _ to access the return value of the last executed command
Just enter the commands and confirm with Enter
[1] pry(#<Spaceship::Playground>)> Spaceship::Tunes.select_team