我有以下问题,我在任何地方都找不到解决方案。基本上,我们有一个公司开发人员帐户(不是企业),所以为了提交我们的应用程序,我要求我们的团队领导向我发送分发证书,并创建并发送分发配置文件。

有了开发者配置文件,一切都很好,但当我安装证书和供应配置文件时,我在Xcode上没有看到分发配置文件,也没有在keychain中的dist cert下有私钥。

有人知道怎么解吗?我在不同的地方读到,我需要撤销证书并创建一个新的,但我真的不能这样做,因为我们公司有一堆应用程序,我不能为每个人撤销它。


当前回答

在菜单> Visual Studio (mac) >首选项>发布> Apple开发者帐户>[选择您的Apple id] >查看详细信息>创建证书

删除不使用或无效的证书,请登录https://developer.apple.com/account/resources/certificates/list

删除任何不需要的证书

接下来是创建App ID(标识符),进入网站: https://developer.apple.com/account/resources/identifiers/list

接下来,去网站创建配置文件: https://developer.apple.com/account/resources/profiles/add

使用证书绑定您的应用程序id。

接下来是下载档案: >在菜单> Visual Studio (mac) >首选项>发布>苹果开发者帐户>[选择您的Apple id] >查看详细信息>下载所有配置文件

其他回答

在菜单> Visual Studio (mac) >首选项>发布> Apple开发者帐户>[选择您的Apple id] >查看详细信息>创建证书

删除不使用或无效的证书,请登录https://developer.apple.com/account/resources/certificates/list

删除任何不需要的证书

接下来是创建App ID(标识符),进入网站: https://developer.apple.com/account/resources/identifiers/list

接下来,去网站创建配置文件: https://developer.apple.com/account/resources/profiles/add

使用证书绑定您的应用程序id。

接下来是下载档案: >在菜单> Visual Studio (mac) >首选项>发布>苹果开发者帐户>[选择您的Apple id] >查看详细信息>下载所有配置文件

为了补充其他人的答案,如果你不再有访问私钥的权限,那么重新启动和运行是相当简单的:

在供应门户中撤销您的活动证书 创建新的开发人员证书(keychain访问/…/请求csr…等等) 下载并安装新证书 为现有的应用id创建一个新的配置文件(在配置门户上) 下载并安装新的配置文件,在构建中,设置设置适当的代码签名标识

当您更改的Mac不是创建分发证书的原始Mac后,您将丢失私钥。只需删除原始证书并重新创建一个新的证书,这对我来说是有效的~

在我的情况下,我丢失了我的钥匙链中的所有私钥,新导入的私钥是正确的,但不显示私钥。唯一有帮助的是生成新的CertificateSigningRequest

I assume you have switched device and trying to create a new certificate for your new device, First revive the development certificate form the developers portal, Go to xcode > preferences > accounts > select your apple id with the dev portal access > manage certificates > click on the team account > click on the little + button > click on apple distribution Go to the apple developer portal , you can see a distribution certificate is created , Go to profiles create a new profile with the new certificate. Download > install done