xcode 一台 Mac 上有多个 iPhone 开发者帐户?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/660798/
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
Multiple iPhone Developer Accounts on One Mac?
提问by Taptronic
I have searched but cant find this question anywhere. My wife and I are about to take on iPhone development and we've only got the funds to purchase one iMac 24" to do this. Anyone out there with iPhone development experience know if two different Apple developer accounts can be profiled on one development Mac? Not only via the developer program but also does the XCODE (I believe it is) IDE support it?
我已经搜索过,但在任何地方都找不到这个问题。我和我的妻子即将进行 iPhone 开发,而我们只有购买一台 24" iMac 的资金来完成这项工作。任何有 iPhone 开发经验的人都知道是否可以在一台开发 Mac 上配置两个不同的 Apple 开发人员帐户? 不仅通过开发者程序,而且 XCODE(我相信是)IDE 是否支持它?
What we're hoping to be able to do is that I can log in with my profile and developer/debug, etc my iPhone application and her do the same under her own profile (not seeing mine and vice-versa). Time sharing wont be an issue as I work from home while she works away from home and we'll be able to figure out that part no problem.
我们希望能够做的是,我可以使用我的个人资料和开发人员/调试等登录我的 iPhone 应用程序,而她在她自己的个人资料下也可以这样做(看不到我的,反之亦然)。分时不会成为问题,因为我在家工作而她在外工作,我们将能够弄清楚那部分没问题。
Please understand that we're both completely new to the Mac, OS X as well as the iPhone development arena and so we have no idea if this is possible. If not our second option would be to purchase two Mac Mini's (keyboards and mice too) and figure out some KVM to each of our existing PC's monitors that we already have, and develop that way. We would rather not and just share one iMac between two developer accounts and IDE profiles.
请理解,我们对 Mac、OS X 以及 iPhone 开发领域都是全新的,因此我们不知道这是否可行。如果不是,我们的第二个选择是购买两台 Mac Mini(还有键盘和鼠标),并为我们现有的每台 PC 显示器找出一些 KVM,然后以这种方式进行开发。我们宁愿不在两个开发人员帐户和 IDE 配置文件之间共享一台 iMac。
UPDATE:My wife and I invested in a 24" iMac from Best Buy utilizing a 12 month no-interest offer, which made it the choice over the 20" iMac. Its got plenty of RAM (4G out of 8G max) and HD space (640G) and we're getting used to the MAC OS X and will begin developing soon. We've created two OS X accounts, to keep settings and such separate. Either Windows moved closer to OS X or vice-versa as things on OS X seem quite intuitive and we were highly impressed at the whole un-box and setup time of about 8 minutes! So far, so good.
更新:我和我的妻子使用 12 个月的无息优惠投资了 Best Buy 的 24 英寸 iMac,这使其成为 20 英寸 iMac 的选择。它有足够的 RAM(最大 8G 中的 4G)和高清空间(640G),我们已经习惯了 MAC OS X,很快就会开始开发。我们创建了两个 OS X 帐户,以保持设置等独立。Windows 向 OS X 靠拢,反之亦然,因为 OS X 上的东西看起来非常直观,整个开箱和大约 8 分钟的设置时间给我们留下了深刻的印象!到现在为止还挺好。
回答by John Fricker
Sure. Just make two user accounts on the iMac. Easy!
当然。只需在 iMac 上创建两个用户帐户即可。简单!
回答by Dad
I have two iPhone developer accounts that I work with, so instead of two accounts and two people, it's two accounts and one person. Unfortunately, being the same person both accounts ended up with the same Agent name (and it appears nearly impossible to change this - my case requesting the change has been open with Apple for months).
我有两个 iPhone 开发者帐户供我使用,因此不是两个帐户和两个人,而是两个帐户和一个人。不幸的是,作为同一个人,两个帐户最终都使用了相同的代理名称(而且似乎几乎不可能改变这一点——我要求更改的案例已经在 Apple 开放了几个月)。
This resulted in two sets of keys and certificates and the keys have the same name. This causes problems in Xcode, both in the Organizer and in code signing. I filed bugs on these 6635822) some time ago, but ended up just now finding a work-around for both problems. I wrote it down in a blog entry in case it'd be helpful to others.
这导致了两组密钥和证书,并且密钥具有相同的名称。这会导致 Xcode 中的管理器和代码签名出现问题。前段时间我在这些 6635822 上提交了错误,但现在最终找到了解决这两个问题的方法。我把它写在博客条目中,以防对其他人有所帮助。
Update: Jan 2010: it looks like Apple has addressed this with their certificate generation - User Names now seem to have a number appended to them in parenthesis (e.g., My Name (A340D)). I have not tried to regenerate certificates on previous accounts to see if they get this hash added, but newly created ones are having this added.
更新:2010 年 1 月:看起来 Apple 已经通过生成证书解决了这个问题 - 现在用户名似乎在括号中附加了一个数字(例如,我的名字 (A340D))。我没有尝试在以前的帐户上重新生成证书以查看它们是否添加了此哈希值,但新创建的帐户已添加了此哈希值。
Update: Feb 12 2010: Yes, if you regenerate the certificate on the account it appends a number to the name and this whole issue is a non-issue. So you can just have one keychain and all your certificates there now - thanks apple!
更新:2010 年 2 月 12 日:是的,如果您在帐户上重新生成证书,它会在名称后附加一个数字,并且整个问题都不是问题。所以你现在可以只有一个钥匙串和你所有的证书——谢谢苹果!
回答by cdespinosa
That's one way. You can share the single copy of the /Developer tools, but each have your own login name, preferences, and keychains.
那是一种方式。您可以共享 /Developer 工具的单个副本,但每个副本都有自己的登录名、首选项和钥匙串。
If you share the same Mac OS X user account, but have two ADC identities, on the Safari side you just have to make sure you log out of the ADC website when you trade places.
如果您共享同一个 Mac OS X 用户帐户,但有两个 ADC 身份,则在 Safari 端,您只需确保在交易地点时退出 ADC 网站。
On the Xcode side, you'll need to add both Developer Certificates to your keychain, and both Provisioning Profiles to Xcode's organizer. I recommend that you each have your own phone, if you're going to have separate Provisioning Profiles and Developer Certificates.
在 Xcode 方面,您需要将两个开发人员证书添加到您的钥匙串中,并将两个 Provisioning Profiles 添加到 Xcode 的管理器中。如果您要拥有单独的配置文件和开发人员证书,我建议你们每个人都有自己的手机。
The crucial part is that for each project you work on, you need to set the Code Signing Identity to the full and exactidentity for the person who owns it. The projects come set up with a wildcard identity of "iPhone Developer"; you need to change it to "iPhone Developer—John Appleseed" to use your signing certificate and profile, and your wife has to do the same on her projects.
关键部分是,对于您从事的每个项目,您需要将代码签名身份设置为拥有它的人的完整和准确的身份。这些项目设置了“iPhone Developer”的通配符身份;您需要将其更改为“iPhone Developer-John Appleseed”以使用您的签名证书和配置文件,您的妻子也必须在她的项目中执行相同的操作。
回答by cdespinosa
Also, if you copy an app from one developer account and try to use the identity and provisioning profile associated with the other account, it won't work. You'll have to quit XCode and edit the project.pbxproj file which you'll find inside the .xcodeproj bundle. Find every term next to CODE_SIGN_IDENTITY or PROVISIONING_PROFILE and delete the value in double quotes (leave the double quotes). Then restart XCode and select the provisioning profile in the Get Info's Build tab for both the main object in the upper left of Groups and Files, and also any and all Targets. Then it should work. Apparently, when an app has been build using a provisioning profile for one ADC account, XCode doesn't fix up all the information necessary to allow you to change to a different ADC account.
此外,如果您从一个开发者帐户复制一个应用程序并尝试使用与另一个帐户关联的身份和配置文件,它也将不起作用。您必须退出 XCode 并编辑位于 .xcodeproj 包中的 project.pbxproj 文件。找到 CODE_SIGN_IDENTITY 或 PROVISIONING_PROFILE 旁边的每个术语并删除双引号中的值(保留双引号)。然后重新启动 XCode 并在“获取信息”的“构建”选项卡中为“组”和“文件”左上角的主要对象以及任何和所有目标选择配置文件。那么它应该工作。显然,当使用一个 ADC 帐户的配置文件构建应用程序时,XCode 不会修复允许您更改为不同 ADC 帐户所需的所有信息。