Xcode 检索开发人员信息时出错?

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

Xcode Error Retrieving Developer Info?

iosxcodeideprovisioning-profileapple-id

提问by 67cherries

I am following this apple docand trying to add provisioning profiles and signing identities for a new apple-id. The problem is that when I add a new apple-id in Xcode -> Settings -> Accounts I am getting "Error Fetching Developer Info". Error Fetching Developer Info

我正在关注这个苹果文档并尝试为新的苹果 ID 添加配置文件和签名身份。问题是,当我在 Xcode -> 设置 -> 帐户中添加新的 apple-id 时,我收到“获取开发人员信息时出错”的消息。 获取开发者信息时出错

Thisis about all I have found searching around on google. I've restarted Xcode multiple times to no avail. Has anyone encountered this error?

就是我在谷歌上搜索的所有内容。我已经多次重新启动 Xcode 无济于事。有没有人遇到过这个错误?

How do I fix this issue?

我该如何解决这个问题?

回答by John Vargo

This is what worked for me.

这对我有用。

XCode > Preferences > Accounts

XCode > 首选项 > 帐户

Retype password, then click the General tab.

重新输入密码,然后单击常规选项卡。

Then, go back to the Accounts tab. The error disappeared.

然后,返回到“帐户”选项卡。错误消失了。

I'm guessing there are a number of situations that can cause this issue, just wanted to post what worked for me.

我猜有很多情况会导致这个问题,只是想发布对我有用的东西。

回答by Thomas

I had the same problem with Xcode6 GM and found the error in the system.log. When communicating with the developer portal, my name contained special characters like è, ?, ü, ? etc. After the change to ae, ue and ss I could use my AppleID and all certificates were for the use of Xcode6 downloaded.

我在 Xcode6 GM 上遇到了同样的问题,并在 system.log 中发现了错误。在与开发者门户交流时,我的名字包含特殊字符,如 è、?、ü、? 等。在更改为ae、ue 和ss 后,我可以使用我的AppleID,并且所有证书都供下载的Xcode6 使用。

Check your "system.log" file with your konsole.app and check if you have an DVTDeveloperAccountErrorPortalResponseText in your communication as the following:

使用 konsole.app 检查您的“system.log”文件,并检查您的通信中是否有 DVTDeveloperAccountErrorPortalResponseText,如下所示:

DVTDeveloperAccountErrorPortalResponseText=<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
    <key>firstName</key>
    <string>René</string>
    <key>lastName</key>
    <string>B?rnshofer</string>

If yes, change your developer account name in the developer portal. That solved my problem. But I guess there is an issue in the communication of the developer portal. In Xcode5.x all my accounts are working fine and my userLocale is correct. In Xcode6 my locale is US-EN and so I guess the special characters does not match or could not processed. I opened a bug report for that. Maybe Apple will fix the issue

如果是,请在开发者门户中更改您的开发者帐户名称。那解决了我的问题。但是我猜开发者门户的沟通有问题。在 Xcode5.x 中,我的所有帐户都运行良好,并且我的 userLocale 是正确的。在 Xcode6 中,我的语言环境是 US-EN,所以我猜特殊字符不匹配或无法处理。我为此打开了一个错误报告。也许苹果会解决这个问题

回答by Maximilian Tyrtania

"Error Fetching Developer Info" is also Xcode's way of telling you that the password is incorrect. Luckily it told me so in the console.

“Error Fetching Developer Info”也是 Xcode 告诉您密码不正确的方式。幸运的是它在控制台中告诉了我。

回答by wheeliebin

"Error Fetching Developer Info" is also Xcode's way of telling you that the password has expired. Make sure you can log into the developer portal - if you haven't changed your password in the past year (?) you will get a message when logging on to the portal telling you to se up a new password. Do this on the portal then put the new password into XCode.

“Error Fetching Developer Info”也是 Xcode 告诉您密码已过期的方式。确保您可以登录开发人员门户 - 如果您在过去一年中没有更改密码 (?),您将在登录门户时收到一条消息,告诉您设置新密码。在门户上执行此操作,然后将新密码放入 XCode。

回答by evandrix

Besides an incorrect/expired password, it might also be that you have Two-Step Verification (2FA) enabled - as was my case.

除了不正确/过期的密码,也可能是您启用了两步验证 (2FA) - 就像我的情况一样。

Disable it, then enter your password, and click on the "General" tab, and then click back on the "Accounts" tab in Xcode's Preferences.

禁用它,然后输入您的密码,然后单击“常规”选项卡,然后返回 Xcode 首选项中的“帐户”选项卡。

回答by mattalxndr

I had to verify my account at https://appleid.apple.com/.

我必须在https://appleid.apple.com/验证我的帐户。