Kar*_*ban 34 itunesconnect ios fastlane
我写下来的Appfile对fastlane,我的问题是我已经具备了team_name和team_id苹果开发中心,但我不能让iTunes Connect ID/ itc_team_id.我和不同的团队合作.我怎么得到它?任何指南都会很棒.谢谢
Jor*_*ndo 74
您可以直接从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
Run Code Online (Sandbox Code Playgroud)
您将看到您的帐户所属的团队列表,以及该团队的数字表示.
Kra*_*eFx 12
而不是尝试手动获取它,只需运行fastlane而不指定团队ID.一旦需要选择,fastlane将列出所有可用的iTunes Connect团队及其ID,然后您可以存储此号码.
sul*_*rza 10
fastlane 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)
Run Code Online (Sandbox Code Playgroud)
你应该选择一个,之后它会像你一样
[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)
Run Code Online (Sandbox Code Playgroud)
将以下通道代码添加到您的 fastlaneFastfile并运行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
Run Code Online (Sandbox Code Playgroud)
获得的iTunes从连接组ID和球队名称ItunesTeamNames和DevTeamNames文件夹FASTLANE在
注意:-用您的苹果 ID 和密码替换{appleID}和{applePassword}
如果您不在Mac上,则可以通过iTunes connect网站获得它。
associatedAccounts具有不同contentProvider对象的数组中获取iTunes Connect ID- 名为的条目contentProviderId反映了iTunes Connect ID,查找该name值以选择正确的ID。来源:https : //github.com/fastlane/fastlane/issues/4301#issuecomment-253461017
我正在使用 fastlane,一次登录即可管理多个帐户。
fastlane match
Run Code Online (Sandbox Code Playgroud)
fastlane deliver
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11038 次 |
| 最近记录: |