我有多个应用程序的开发者帐户。我正在使用 faSTLane 匹配来生成证书和配置文件。现在使用 match 它会创建新的证书。检查下面的代码我是如何生成它的。
lane :GenerateCerts do
match(app_identifier: "dev", type: "development")
match(app_identifier: "stage", type: "development")
match(app_identifier: "stage", type: "appstore")
end
我已经越过了开发者帐户的限制来生成新的 iOS 分发证书,所以我无法生成新的证书。但我猜开发门户上的证书可用于生成配置文件。
如何使用门户中已有的证书来生成配置文件?
另外,我需要在 Xcode 中为不同的配置手动设置配置文件。哪个命令有助于在 Xcode 中配置由 match、cert、sigh 生成的证书?
当我有多个应用程序的单个开发人员帐户时,以下情况的最佳做法是什么?
现在我正在使用第一个。如果您有更好的建议,请帮忙。
最佳答案
How can I use the certificate already there in portal to generate profiles?
match不支持此用例。匹配仅支持同步其创建的配置文件。如果要解决此问题,可以手动创建一个相同的加密git repo,然后从那里开始工作。有关在the advanced documentation page上进行修改的说明
相反,您可以查看源代码以进行匹配,该源代码在后台使用cert和sigh,并针对您的特定用例创建自定义操作。
但老实说,只需销毁现有证书并匹配就可以制作新证书。
Also, I need to manually set the profiles in Xcode for different configurations. Which command could be helpful to configure certificates in Xcode generated by match, cert, sigh?
澄清:
因此,如果要配置证书,请使用cert。
What is the best practice for following case when I have single developer account for multiple apps?
据我所知,这里并没有真正的最佳实践。您有几种选择,每种选择都有自己的权衡:
第二个选项将需要使用
match_branch
选项,该选项可以在Fastfile
或Matchfile
中指定的(我的偏好)中传递,以使Fastfile
更加整洁。对于最终选项,当从特定 channel 调用时,可以使用for_lane
命令覆盖选项。例如,您的Matchfile
可能看起来像:git_url "git@github.com:my_org/my_repo_name.git"
type 'development'
readonly true
for_lane :deploy_to_app_store do
type 'appstore'
git_url "git@github.com:my_org/my_distribution_cert_repo.git"
end
关于xcode - FaSTLane与多个应用程序匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48576134/