ios Xcode 8 签名错误,无法使用帐户登录且没有配置文件

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

Xcode 8 signing errors, can't login with account and no provisioning profile

iosxcodexcode8provisioning-profilesigning

提问by bigreddawg

When I run my application, two errors appear in the Signing part of the General tab of the project. One says, "The operation couldn't be completed. Unable to log in with account ________" while the other says "No profiles for ________ were found." It mentions that Xcode couldn't find a provisioning profile. What does this mean, and how do I fix it?

当我运行我的应用程序时,项目的常规选项卡的签名部分出现两个错误。一个说“操作无法完成。无法使用帐户________登录”,而另一个说“找不到____的个人资料”。它提到 Xcode 找不到配置文件。这是什么意思,我该如何解决?

回答by Geoff Johnson

I can't take credit for this solution, it came from BrianBatchelder on the apple forum.

我不能相信这个解决方案,它来自苹果论坛上的 BrianBatchelder。

I had to go to "XCode" -> "Preferences" -> "Accounts", where it turned out my Apple ID had timed-out. After logging-in there, and then restarting Xcode, my profile was automatically "repaired", and all is now well.

我不得不转到“XCode”->“首选项”->“帐户”,结果我的 Apple ID 超时了。在那里登录后,然后重新启动 Xcode,我的配置文件被自动“修复”,现在一切正常。

Re-starting Xcode is important there, it doesn't work without it.

重新启动 Xcode 在那里很重要,没有它就无法工作。

回答by Himanshu Moradiya

I got around it by unchecking and rechecking:

我通过取消选中并重新选中来解决它:

Project Settings -> General -> Signing -> 'Automatically manage signing'

项目设置 -> 常规 -> 签名 -> '自动管理签名'

IF this not work then try second option:

如果这不起作用,请尝试第二个选项:

I was having this same issue. Here is what I did that solved the problem for me.

我遇到了同样的问题。这是我所做的,为我解决了问题。

1) First I right clicked on each of the two profiles that would "grey-non-download" and moved to trash.

1)首先,我右键单击了“灰色非下载”的两个配置文件中的每一个,然后移到垃圾箱。

2) Then I deleted the developer account within Xcode.

2)然后我在Xcode中删除了开发者帐户。

3) I re-added the developer account, went back to details and download all.

3)我重新添加了开发者帐户,返回详细信息并下载了所有内容。

It worked for me, hope this helps.

它对我有用,希望这会有所帮助。

回答by tibbus

Be sure that you have the right signing identity for : App : General and Build Settings AppTests : General and Build Settings

确保您有正确的签名标识: App :常规和构建设置 AppTests :常规和构建设置

In my case for some reason the AppTests started to have the wrong settings out of nowhere.

在我的情况下,出于某种原因,AppTests 开始突然出现错误的设置。

回答by 0xBFE1A8

This error could happen when XCode is unable to connect to Apple's server. You can check Apple's system status here.

当 XCode 无法连接到 Apple 的服务器时,可能会发生此错误。您可以在此处查看 Apple 的系统状态。