美文网首页
如何使用别人的证书通过xcode打包iOS应用

如何使用别人的证书通过xcode打包iOS应用

作者: 代码移动工程师 | 来源:发表于2019-11-20 09:53 被阅读0次

要在别的电脑使用别人的苹果帐号打包app,需要两个文件:

●该证书导出的“.p12”文件

.p12文件是包含证书公钥和私钥的文件,通过“钥匙串”程序导出


image.png

●苹果开发者帐号中与“证书”对应的“描述文件”(.mobieProvison profile)

在apple developer后台下载到

如何导出.p12文件
首先,在通过.cerSigningRequest创建出证书的电脑上才能导出.p12文件,.p12文件必须要通过带有私钥信息的文件才能导出

导出.p12的时候,输入密码,即可发给别人打包,而不需要让其他人知道你的苹果开发者帐号

如何安装到mac电脑:

1、将p12文件双击,会自动打开“钥匙串”工具,输入p12密码

2、双击.mobileprovision描述文件,会自动安装到xcode中


image.png

在xcode中分别选中Targets和Project,然后选中Build Settings标签,如下图修改code signing参数

打包报错: A valid provisioning profile for this executable was not found.

解决办法:mobileprovision描述文件必须加入打包机器的udid。

报错:Provisioning profile "xxx" doesn't include the com.apple.developer.icloud-container-identifiers entitlement.

apple developer后台的appids中iCloud权限没有打开,或者打开之后没有选中对应的container,如果container也设置了,确认是否选项为这个Include CloudKit support


image.png

原文链接:https://blog.csdn.net/plpldog/article/details/84324390

相关文章

网友评论

      本文标题:如何使用别人的证书通过xcode打包iOS应用

      本文链接:https://www.haomeiwen.com/subject/uhrsictx.html