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

有了开发者配置文件,一切都很好,但当我安装证书和供应配置文件时,我在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] >查看详细信息>下载所有配置文件

其他回答

从KeyChain中删除现有的,从创建证书的地方获取并添加.p12文件到mac。

要从源Mac获取.p12,进入KeyChain,展开证书,选择两者并导出2项。这将保存.p12文件在您的位置:

当我试图上传iOS构建到试飞时,出现了错误。

“私钥遗失”。

只需2步来修复这个错误。

从developer.apple.com删除旧证书 从Xcode或developer.apple.com创建新证书

我的问题已经解决了(我使用Xcode 9.4.1)。

请检查,Xcode创建了新的证书。

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

我的问题是,不管出于什么原因,登录的钥匙串在钥匙串访问中丢失了。Xcode创建了一个新的证书,并将其添加到登录密钥链中,但无法使用它。重新启动电脑解决了我的问题。

检查你是否使用Login来添加证书,如果你是在左上角的System,那么我们将无法看到它。

所以拖拽。cer到登录,然后检查你是否能够获得私钥。