未安装 Xcode 分发证书私钥

问题描述:

我正在尝试临时分发我的应用程序.但是,当我存档而不是尝试导出它时,我会看到以下屏幕:

I am trying to Ad-hoc distribute my app. However, when I archive and than try to export it I am getting following screens:

在此屏幕上,当我单击管理证书"按钮时,会看到以下屏幕:

On this screen, when I click "Manage Certificates" button, I get following screen:

我尝试在 Apple Developer Portal 上重新生成配置文件.我生成并下载了 Mobile Provision 文件并尝试再次导出该应用程序,但收到相同的丢失私钥错误.

I tried to regenerate provision profile on Apple Developer Portal. I generated and downloaded Mobile Provision files and tried to export again the app but I am received the same missing private keys error.

更新我试图手动签署我的应用程序.当我从配置文件"中选择下载配置文件"时,它会显示以下输出屏幕:

UPDATE I tried to manually sign my app. When I choose "Download Profile" from 'Provisioning Profile' it gives me following output screen:

谢谢

我认为你应该重新开始.

I think you should start over.

  1. 退出 Xcode.

  1. Quit Xcode.

删除 DerivedData 文件夹.

删除~/Library/MobileDevice/Provisioning Profiles 文件夹.

在 Keychain Access 中,删除与 Apple 开发相关的所有内容.

In Keychain Access, delete everything related to Apple development.

在浏览器中转到门户并删除所有证书和配置文件.

Go to portal in browser and delete all certificates and profiles.

现在重新开始.