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

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

其他回答

我可以通过更新macOS和XCode来解决这个问题。

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

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

联系iOS分发密钥的创建者并告诉导出证书和私钥,然后只需下载并双击它即可在您的钥匙链中访问。

在我的情况下,我丢失了我的钥匙链中的所有私钥,新导入的私钥是正确的,但不显示私钥。唯一有帮助的是生成新的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