xcode Mac 应用程序直接分发:“您的帐户无权创建 Mac 应用程序直接分发证书”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37347989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:18:30  来源:igfitidea点击:

Mac app direct distribution: "Your account does not have permission to create Mac App Direct Distribution certificates"

xcodemacosprovisioning-profilesigning

提问by Dominik Palo

I want to distribute my mac application outside the App Store (as file downloadable from our servers), but every attempt to export archive from Xcode with option "Export a Developer ID-signed Application" ends with a "Permission failure":

我想在 App Store 之外分发我的 mac 应用程序(作为可从我们的服务器下载的文件),但每次尝试从 Xcode 导出存档并选择“导出开发人员 ID 签名的应用程序”都以“权限失败”结束:

Your account does not have permission to create Mac App Direct Distribution certificates

您的帐户无权创建 Mac App Direct Distribution 证书

I've downloaded and added all certificates to my keychain (system). I'm using an Organization Apple Developer account, so is it possible to use this type of account to sign applications outside the App Store or must I have an Enterprise Program Account to do it? Or is there other problem?

我已经下载并将所有证书添加到我的钥匙串(系统)中。我使用的是组织 Apple Developer 帐户,是否可以使用这种类型的帐户在 App Store 之外签署应用程序,或者我必须拥有企业计划帐户才能执行此操作?还是有其他问题?

回答by Dominik Palo

I consulted this problem with Apple and their answer is:

我向苹果咨询了这个问题,他们的回答是:

You certainly don't need an Enterprise account to distribute Developer ID signed apps. One gotcha here is that you must be the Team Agent in order to issue Developer ID certificates. Please double check that.

您当然不需要企业帐户来分发开发人员 ID 签名的应用程序。这里的一个问题是,您必须是团队代理才能颁发开发人员 ID 证书。请仔细检查。

Problem was, that I have Admin role in our team, but only user with Team Agent role has permission to generate certificates for distribution of app outside the App Store (Developer-ID signed apps). So, I generated a Certificate Signing Request and sent it to our Team Agent, then he creeated and sent a certificate for me and now I can sign apps.

问题是,我在我们的团队中拥有 Admin 角色,但只有具有 Team Agent 角色的用户才有权生成证书以在 App Store 之外分发应用程序(开发者 ID 签名的应用程序)。所以,我生成了一个证书签名请求并将其发送给我们的团队代理,然后他为我创建并发送了一个证书,现在我可以签署应用程序。

回答by StevenOjo

This seems to be a bug or poorly described feature in iTunes Connect & the Apple Developer portal.

这似乎是 iTunes Connect 和 Apple Developer 门户中的一个错误或描述不佳的功能。

I had a developer that joined my team, initially as a "member", but wasn't able to create certificates, even after giving him admin access. It turns out, that I believe we were only giving him admin access to Itunes connect, but notto the developer page.

我有一个开发人员加入了我的团队,最初是作为“成员”,但即使在授予他管理员访问权限后也无法创建证书。事实证明,我相信我们只给了他对 Itunes connect 的管理员访问权限,而不是开发人员页面。

The correct fix was to go to the developer portal, click the "People" tab (or go to this URL https://developer.apple.com/account/#/people/), remove his access, then use the Invite as Adminsto add him to the account. He then had to go into Xcode and remove his developer account information, add it back in, and then he was finally able to upload builds to Testflight without this error.

正确的解决方法是转到开发人员门户,单击“人员”选项卡(或转到此 URL https://developer.apple.com/account/#/people/),删除他的访问权限,然后使用Invite as管理员将他添加到帐户中。然后他不得不进入 Xcode 并删除他的开发者帐户信息,重新添加它,然后他终于能够将构建上传到 Testflight 没有这个错误。

回答by Bill Chan

In my case, I signed the app with another team. Change the team and re-achieve the app solves the issue.

就我而言,我与另一个团队签署了该应用程序。更换团队并重新实现应用程序解决了问题。