您的帐户无权创建 iOS 分发证书

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40670557/
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-08-31 10:49:12  来源:igfitidea点击:

Your account does not have permission to create iOS distribution certificates

iosxcode

提问by Aravind

I want to upload my app to testflight. when I upload the app Xcode shows this error:

我想将我的应用程序上传到 testflight。当我上传应用程序时,Xcode 显示此错误:

your account does not have permission to create ios distribution certificates

您的帐户无权创建 ios 分发证书

enter image description here

在此处输入图片说明

Anyone help me?

有人帮我吗?

回答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 not to 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 Admins to 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 Fidel

Based on your comment "Yes, we have a developer account for Team" I am guessing that what you have is an Enterprise Developer account. If you have a Enterprise DA you cannot upload to the apple store/test-flight. You will need to create a personal developer account for that. Enterprise accounts are only good for in house testing and not for external. That's why you are getting this error.

根据您的评论“是的,我们有团队的开发人员帐户”,我猜您拥有的是企业开发人员帐户。如果您有企业 DA,则无法上传到苹果商店/试飞。您需要为此创建一个个人开发者帐户。企业帐户仅适用于内部测试而不适用于外部。这就是您收到此错误的原因。

回答by Shamsudheen TK

This should be the user permission issue. Please note that only user with Team Agentrole has permission to generate certificates for distribution of app outside the App Store. I believe, you are not in Team Agentrole. Please double check your permissions.

这应该是用户权限问题。请注意,只有具有Team Agent角色的用户才有权生成用于在 App Store 外分发应用程序的证书。我相信,您不是团队代理角色。请仔细检查您的权限。

You can even generate a Certificate Signing Request and send it to your Team Agent. Get back the created certificate from the Team Agent and use it to sign apps.

您甚至可以生成证书签名请求并将其发送给您的团队代理。从 Team Agent 取回创建的证书并使用它来签署应用程序。

回答by Hiroki Murahi

  1. Using keychain, export valid certificate on a computer on which iOS distribution signing identity works. You need two files, one is public - <fileNamePublic>.pemfile, and other is private - <fileNamePrivate>.p12file.

  2. Put those files in a folder on computer on which you need signing identity to work.

  3. Open terminal and browse to the folder you've put them in.

  4. First, type: security import <fileNamePrivate>.p12 -k ~/Library/Keychains/login.keychain

  5. Then type: security import <fileNamePublic>.pem -k ~/Library/Keychains/login.keychain

  6. Open XCode, go to XCode>preferences>accounts>view details and refresh the apple id you are using

  7. You should have signing identities enabled.

  1. 使用钥匙串,在 iOS 分发签名标识工作的计算机上导出有效证书。您需要两个文件,一个是公共<fileNamePublic>.pem文件,另一个是私有<fileNamePrivate>.p12文件。

  2. 将这些文件放在需要签名身份才能工作的计算机上的文件夹中。

  3. 打开终端并浏览到您放置它们的文件夹。

  4. 首先,键入: security import <fileNamePrivate>.p12 -k ~/Library/Keychains/login.keychain

  5. 然后输入: security import <fileNamePublic>.pem -k ~/Library/Keychains/login.keychain

  6. 打开XCode,进入XCode>preferences>accounts>view details,刷新你使用的apple id

  7. 您应该启用签名身份。

回答by rein

Perhaps your iTunes Connect account does not have the correct role?

也许您的 iTunes Connect 帐户没有正确的角色

回答by user1039695

Every thing was good with my account, no permission changed as already it was same email id used to purchase the account. I fixed this problem by removing the account from Xcode preferences and again added it. What i did was immediately added credentials in Xcode preferences right after purchasing the account. I should have to wait for Apple to process the order.

我的帐户一切都很好,没有更改权限,因为它已经是用于购买帐户的相同电子邮件 ID。我通过从 Xcode 首选项中删除该帐户并再次添加它来解决此问题。我所做的是在购买帐户后立即在 Xcode 首选项中添加凭据。我应该等待苹果处理订单。

回答by agro1986

Perhaps your provisioning profile was expired and even after updating it from Apple's developer website, Xcode doesn't try to fetch the new one.

也许您的配置文件已过期,即使在从 Apple 的开发人员网站更新它之后,Xcode 也不会尝试获取新的配置文件。

Here's how to solve it:

以下是解决方法:

  1. Xcode -> preferences -> accounts
  2. Select your Apple ID, and on the right bottom pane select your team and click View Details
  3. Under provisioning profile, find your expired profile, right click, and click Move to Trash
  4. You should be able to sign and upload your app.
  1. Xcode -> 首选项 -> 账户
  2. 选择您的 Apple ID,然后在右下窗格中选择您的团队,然后单击查看详细信息
  3. 在配置文件下,找到您过期的配置文件,右键单击,然后单击移至垃圾箱
  4. 您应该能够签署和上传您的应用程序。

回答by HariKarthick

If you are getting the same error...Create the .ipa file and upload to https://www.diawi.com/

如果您遇到相同的错误...创建 .ipa 文件并上传到https://www.diawi.com/

you will get an link, which you can share with your client.It's not a solution for your question but it will help you.

您将获得一个链接,您可以与您的客户分享该链接。这不是您问题的解决方案,但会对您有所帮助。