Apple 团队的“成员”可以从 Xcode 导出以进行 iOS 分发吗?

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

Can an Apple team 'member' export from Xcode for iOS distribution?

iosxcodeenterprise-distribution

提问by Prasoon

I am having a 'member' role in an 'Apple Developer Enterprise Program' team. When I try to export for deployment, it comes with message - You are not allowed to perform this operation, Please check with one of your Team Admins. Based on limited knowledge, I understand that in order to export for deployment I need to have 'admin' role. Am I correct? Is there something like my team admin sending me some certificate / key and then I could use it? If yes, how?

我在“Apple Developer Enterprise Program”团队中担任“成员”角色。当我尝试导出以进行部署时,它带有消息 - 您无权执行此操作,请与您的团队管理员之一核对。基于有限的知识,我了解为了导出部署,我需要具有“管理员”角色。我对么?是否有类似我的团队管理员向我发送一些证书/密钥之类的东西,然后我可以使用它?如果是,如何?

UPDATE (Based on responses)

更新(基于回复)

Simplifying the question:

简化问题:

Can a Team 'member' make a request for distribution signing certificate? Yes or No. If yes, how?

团队“成员”可以请求分发签名证书吗?是或否。如果是,如何?

If answer of the above is yes, once a member get a certificate from admin - how is he supposed to use it? The way I export for deployment as admin - Product > Archive > Export and I get the IPA. The reason I asked this question because I am not able to do the same in a team for which I am just a member. Is it even possible that I can do it, or only an admin can do it?

如果上面的答案是肯定的,一旦成员从管理员那里获得证书 - 他应该如何使用它?我以管理员身份导出部署的方式 - 产品 > 存档 > 导出,然后我得到 IPA。我问这个问题的原因是因为我无法在我只是其中一员的团队中做同样的事情。我什至有可能做到,还是只有管理员才能做到?

P.S.A one or two line answer will help a lot instead of another website link.

PS一两行答案将有很大帮助,而不是另一个网站链接。

采纳答案by Stefan

A team member cannot request distribution signing certificates, only development signing certificates. You need to ask an admin (or another person who has got access to the distribution cert from an admin) to hand you a distributions signing certificate. They can export their certificate from their keychain or Xcode (Settings->Accounts->Signing Identities) in .p12 format and send it to you.

团队成员不能申请分发签名证书,只能申请开发签名证书。您需要请管理员(或从管理员那里获得分发证书访问权限的其他人)为您提供分发签名证书。他们可以从他们的钥匙串或 Xcode(设置->帐户->签名身份)中以 .p12 格式导出他们的证书并将其发送给您。

A team member is probably meant for persons not trusted to sign code in the name of the company. This is how Apple intended the roles to work:

团队成员可能适用于不受信任以公司名义签署代码的人。这就是 Apple 希望这些角色发挥作用的方式:

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html#//apple_ref/doc/uid/TP40012582-CH16-SW10

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html#//apple_ref/doc/uid/TP40012582-CH16-SW10

Team agentA team agent is legally responsible for the team and acts as the primary contact with Apple. The team agent can invite team members and change the access level of any other team member. There's only one team agent.

团队代理团队代理对团队负有法律责任,并且是与 Apple 的主要联系人。团队代理可以邀请团队成员并更改任何其他团队成员的访问级别。只有一个团队代理。

Team adminA team admin can set the privilege levels of other team members, except the team agent. Team admins manage all assets used to sign your apps, either during development or when your team is ready to distribute an app. Team admins are the only people on a team who can sign apps for distribution on nondevelopment devices. Team admins also approve signing certificate requests made by team members.

团队管理员团队管理员可以设置除团队代理之外的其他团队成员的权限级别。团队管理员管理用于签署您的应用程序的所有资产,无论是在开发期间还是在您的团队准备分发应用程序时。团队管理员是团队中唯一可以签署应用程序以在非开发设备上分发的人。团队管理员还批准团队成员提出的签名证书请求。

Team memberA team member can sign apps during development, but only after he or she makes a request for a development signing certificate and has that request approved by a team admin.

团队成员团队成员可以在开发过程中签署应用程序,但只有在他或她提出开发签名证书的请求并且该请求得到团队管理员的批准之后。

回答by Brad Thomas

Yes, it is possible to sign apps for distribution as a team member. You do not need to be a team admin in order to sign apps for distribution. However, it is necessary for you to have the appropriate distribution certificate (and private key) in your keychain in order to do this. (Also - your bundleid, distribution certificate and provisioning profile must be consistent.)

是的,可以签署应用程序以作为团队成员进行分发。您无需成为团队管理员即可签署应用程序以进行分发。但是,您必须在钥匙串中拥有适当的分发证书(和私钥)才能执行此操作。(此外 - 您的 bundleid、分发证书和配置文件必须一致。)

You will not be able to create your own distribution certificate, only admins or above can do that. So you will need to obtain the distribution cert. from someone who already has it. Have them export it from their keychain as a p12 file. When you receive that file, double click it, enter the password, and the distribution cert. and private key will be installed on your keychain.

您将无法创建自己的分发证书,只有管理员或更高级别的管理员才能创建。所以你需要获得分发证书。来自已经拥有它的人。让他们从他们的钥匙串中将其导出为 p12 文件。收到该文件后,双击它,输入密码和分发证书。私钥将安装在您的钥匙串上。

回答by Bamsworld

I believe only Team Admin (and of course Team Agent)can create distribution certificates, however they are allowed to request multiple distribution certificates so you need to get one generated for you.

我相信只有团队管理员(当然还有团队代理)可以创建分发证书,但是他们可以请求多个分发证书,因此您需要为您生成一个。

What it says in the App Distribution Guideis

它在应用程序分发指南中说的

A team admin can set the privilege levels of other team members, except the team agent. Team admins manage all assets used to sign your apps, either during development or when your team is ready to distribute an app. Team admins can edit the App ID to enable app services and create technology specific identifiers used throughout the system. Team admins can sign apps for distribution on nondevelopment devices.

团队管理员可以设置其他团队成员的权限级别,团队代理除外。团队管理员管理用于签署您的应用程序的所有资产,无论是在开发期间还是在您的团队准备分发应用程序时。团队管理员可以编辑 App ID 以启用应用服务并创建整个系统使用的技术特定标识符。团队管理员可以签署应用程序以在非开发设备上分发。