我有一个具有多个目标的 Xcode 项目。其中两个目标生成应用程序,每个都有自己的捆绑 ID,通过 Enterprise 开发人员团队 ID 分发,一个目标通过 App Store 开发人员团队 ID 分发。我正在尝试为这个项目设置 Fastlane Match,但我无法让它与多个团队打交道。
这是我的内容Matchfile
:
git_url("git@github.com:myorg/certificates-repo.git")
git_branch("master")
app_identifier([
"my.app.prod", # <-- Team ID A
"my.app.dev", # <-- Team ID B
"my.app.staging" # <-- Team ID B
])
clone_branch_directly(true)
我的Appfile
:
team_id "Team ID B"
apple_id "my@apple.id"
fastlane match
从命令行运行以初始化 Fastlane Match 时,我收到此错误:
==========================================
Could not find App ID with bundle identifier 'my.app.prod'
You can easily generate a new App ID on the Developer Portal using 'produce':
fastlane produce -u my@apple.id -a my.app.prod --skip_itc
You will be asked for any missing information, like the full name of your app
If the app should also be created on App Store Connect, remove the --skip_itc from the command above
==========================================
An app with that bundle ID needs to exist in order to create a provisioning profile for it
这是有道理的,因为它不知道Team ID A
. 我可以弯曲 Fastlane Match 以在各种应用标识符中使用我的团队 id 吗?