如何更改 Xcode 4 用于下载组件的 Apple ID?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7997317/
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
How can I change the Apple ID that Xcode 4 uses to download components?
提问by Dalbergia
I am running Xcode 4.2 on OS X 10.6.8.
我在 OS X 10.6.8 上运行 Xcode 4.2。
Due to corporate policy, I have two Apple ID's. [email protected]
is my "work" ID, and that's the ID that is connected to my iOS Developer Program membership. I also have [email protected]
, my "personal" ID, which is associated with my music, Angry Birds download, and so on.
由于公司政策,我有两个 Apple ID。[email protected]
是我的“工作”ID,这是与我的 iOS 开发者计划会员资格相关联的 ID。我还有[email protected]
我的“个人”ID,它与我的音乐、Angry Birds 下载等相关联。
I'm trying to install the iOS 4.3 Simulator from within Xcode (Xcode -> Preferences -> Downloads -> Components). When I click the "install" button next to that component, Xcode complains that [email protected]
is not a "Registered Apple Developer". I'd like to have it use [email protected]
, but I can't find any reference anywhere that describes how to change it, within Xcode or otherwise. Can anyone explain how to beat Xcode into submission?
我正在尝试从 Xcode(Xcode -> 首选项 -> 下载 -> 组件)中安装 iOS 4.3 模拟器。当我单击该组件旁边的“安装”按钮时,Xcode 抱怨它[email protected]
不是“注册 Apple 开发人员”。我想让它使用[email protected]
,但我在 Xcode 或其他地方找不到任何描述如何更改它的参考。谁能解释一下如何击败 Xcode 提交?
回答by mjama
You can change the Apple Developer ID that Xcode has associated using Mac OS X's Keychain Access app:
您可以使用 Mac OS X 的 Keychain Access 应用程序更改 Xcode 关联的 Apple Developer ID:
- Quit Xcode
- Open Applications > Utilities > Keychain Access
- Locate the Keychain entry named "daw2.apple.com ([your Apple ID])" of kind Internet password
- Delete this Keychain entry and retry the download in Xcode by re-entering your credentials, or double click on the entry and update the Account and Password fields
- Open Xcode and retry the content download
- 退出 Xcode
- 打开应用程序 > 实用程序 > 钥匙串访问
- 找到名为“daw2.apple.com ([your Apple ID])”的 Internet 密码的 Keychain 条目
- 删除此钥匙串条目并通过重新输入您的凭据重新尝试在 Xcode 中下载,或双击该条目并更新帐户和密码字段
- 打开 Xcode 并重试内容下载
回答by Pinwheeler
It's 2014 and I still got this answer by searching the error that pops up.
现在是 2014 年,我仍然通过搜索弹出的错误得到了这个答案。
If you're using Xcode 5+, you can go to Xcode > preferences > accounts and add as many dev accounts as you would like.
如果您使用的是 Xcode 5+,则可以转到 Xcode > 首选项 > 帐户并添加任意数量的开发帐户。