ios Xcode 管理器 - 无法刷新配置文件列表

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

Xcode Organizer - cannot refresh Provisioning Profiles list

iosxcodecode-signingprovisioning-profile

提问by Slav

I am using Xcode 4.3.3

我正在使用 Xcode 4.3.3

Everything used to work fine before, but since couple of months ago, I can no longer refresh provisioning profiles through Organizer.

以前一切正常,但从几个月前开始,我无法再通过管理器刷新配置文件。

The problem:

问题:

  • I open organizer
  • Click Provisioning Profiles at the top
  • Then click "Refresh" button at the bottom right"
    1. It displays "Downloading development certificates..." and prompts to login.
    2. After successful login, it displays "Fetching team list..." then shows the error:

      "You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support"
  • 我打开组织者
  • 单击顶部的配置文件
  • 然后点击右下角的“刷新”按钮”
    1. 它显示“正在下载开发证书...”并提示登录。
    2. 成功登录后,显示“正在获取团队列表...”,然后显示错误:

      “您无权执行此操作。请与您的团队管理员之一联系,或者,如果您需要进一步的帮助,请联系 Apple 开发人员节目支持”



Some more information:

更多信息:

  • I amTeam Admin
  • I have valid developer certificate, as displayed in both the Apple Developer Portal, my Keychain, and in Organizer (like i said, this all used to work)
  • I have several valid provisioning profiles displayed in Organizer.
  • I have 2 teams displayed in organizer:
    1. One with developement developer certificate (mine)
    2. One with distribution certificate (for app store)
  • This is not a password issue (I get a different error when i type the wrong password)
  • I have removed all other developer certificates besides mine and the distribution certificate
  • I can successfully add certificates if i manually download them
  • I can successfully add provisioning profiles if i manually download them
  • In the Apple Developer Portal, there are no provisioning profiles marked as "Invalid" (there are some that are expired however)
  • I have force-quit Xcode and even restarted the Mac
  • 团队管理员
  • 我有有效的开发人员证书,如 Apple Developer Portal、我的钥匙串和 Organizer 中所示(就像我说的,这一切都曾经有效)
  • 我在管理器中显示了几个有效的配置文件。
  • 我在组织者中显示了 2 个团队:
    1. 一个有开发者证书(我的)
    2. 一个有分发证书(适用于应用商店)
  • 这不是密码问题(当我输入错误的密码时会出现不同的错误)
  • 除了我的和分发证书之外,我已经删除了所有其他开发人员证书
  • 如果我手动下载证书,我可以成功添加证书
  • 如果我手动下载它们,我可以成功添加配置文件
  • 在 Apple Developer Portal 中,没有标记为“无效”的配置文件(但有些已过期)
  • 我已经强制退出 Xcode,甚至重新启动了 Mac

This started happening sometime after iOS6 got released (definitely not at the same time). I've read similar questions on the subject, but most of them deal with "corrupted data" error message. This is not the case for me.

这在 iOS6 发布后的某个时间开始发生(绝对不是同时)。我已经阅读了有关该主题的类似问题,但其中大多数都涉及“数据损坏”错误消息。这不是我的情况。

UPDATE 1 (Nov 13)

更新 1(11 月 13 日)

I have now done the following:

我现在做了以下工作:

  • I have removed all certificates from Keychain, including public and private key.
  • I've revoked my certificate in Apple Dev Portal.
  • I've restarted the machine.
  • I opened Xcode again and hit refresh:
    1. it asked me to login, and prompted to submit a request for a new certificate.
    2. The new certificate was successfully approved and issued, and downloaded into my keychain (i see new public and private keys, as well as the cert).
  • 我已经从钥匙串中删除了所有证书,包括公钥和私钥。
  • 我已在 Apple Dev Portal 中吊销了我的证书。
  • 我已经重新启动了机器。
  • 我再次打开 Xcode 并点击刷新:
    1. 它要求我登录,并提示我提交新证书的请求。
    2. 新证书已成功批准和颁发,并下载到我的钥匙串中(我看到了新的公钥和私钥以及证书)。

However i am still getting the same error on the "refresh" of provisioning profiles: "You are not allowed to perform this operation" and i have no profiles in organizer.

但是,在配置配置文件的“刷新”时,我仍然遇到相同的错误:“您无权执行此操作”并且我在管理器中没有配置文件。

UPDATE 2 (Nov 13)

更新 2(11 月 13 日)

  • I've now updated to XCode 4.5
  • On the first refresh, it actually worked.
  • On all subsequent refreshes, it fails with the same error message "You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support", however it now does it after "Generating Mac Team Provisioning Profile"
    1. Please note i am not using Mac Development. I don't have Developer Mode Enabled, and i don't have Mac Developer program.
    2. I have tried with and without Mac Developer Mode enabled.
    3. Despite the same vague error message, it actually seems to be updating the iOS provisioning profiles.
  • 我现在已经更新到 XCode 4.5
  • 在第一次刷新时,它确实有效。
  • 在所有后续刷新中,它都失败并显示相同的错误消息“您不允许执行此操作。请与您的团队管理员之一联系,或者,如果您需要进一步的帮助,请联系 Apple 开发人员计划支持”,但是现在在“生成 Mac 团队配置文件”之后执行
    1. 请注意,我没有使用 Mac 开发。我没有启用开发者模式,也没有 Mac 开发者程序。
    2. 我试过启用和不启用 Mac 开发人员模式。
    3. 尽管有同样模糊的错误消息,但它实际上似乎是在更新 iOS 配置文件。

After so much time on this, i am still determined to remove this error message. Maybe someone can assist and tell me where XCode would keep it's application log? Is there anything like windows "Event Viewer" for a Mac?

经过这么多时间,我仍然决心删除此错误消息。也许有人可以帮助并告诉我 XCode 将在哪里保存它的应用程序日志?有没有类似 Mac 的 Windows“事件查看器”?

采纳答案by EricS

Try Xcode 5.1. It looks like Apple finally fixed this issue.

试试 Xcode 5.1。看来苹果终于解决了这个问题。

回答by Simon Woodside

I was also getting this error "You are not allowed to perform this operation. Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support". My developer provisioning was not working so I could not even test my apps on device.

我也收到此错误消息“您无权执行此操作。请与您的团队管理员之一联系,或者,如果您需要进一步帮助,请联系 Apple 开发人员计划支持”。我的开发人员配置不起作用,所以我什至无法在设备上测试我的应用程序。

Here's what worked for me:

以下是对我有用的内容:

  • Go on the iOS Provisioning Portal > Certificates > Development. There is probably a Certificate there which you no longer have the key pair for in Keychain. Revoke it.
  • Delete the relevant profiles from the Xcode organizer. Quit Xcode.
  • Go to ~Library/Developer/Xcode and delete connect1.apple.com **.db (maybe not necessary, but won't hurt).
  • Go to ~Library/Caches/com.apple.dt.Xcode and delete the Cache* files.
  • 转到 iOS 供应门户 > 证书 > 开发。那里可能有一个证书,您不再拥有钥匙串中的密钥对。撤销它。
  • 从 Xcode 管理器中删除相关配置文件。退出 Xcode。
  • 转到 ~Library/Developer/Xcode 并删除 connect1.apple.com **.db(可能没有必要,但不会受到伤害)。
  • 转到 ~Library/Caches/com.apple.dt.Xcode 并删除 Cache* 文件。

Now, Xcode is supposed to automatically create a new developer cert, but that seems to be broken right now. So, don't try to use it. Instead:

现在,Xcode 应该自动创建一个新的开发人员证书,但现在似乎已经被破坏了。所以,不要尝试使用它。反而:

  • Go back to the iOS Provisioning Portal.
  • Make sure that your development certificate is revoked (so you don't have one).
  • Now Create a new one, and use the manual process which involves using keychain (we're back in 2009 here). Download the cert.
  • Go back to Xcode > Organizer. Plug in your device. Click on "Provisioning Profiles" under your device name. Delete all certificates currently on the device.
  • Click on the device name. Click "Add to Portal" at the bottom. Go through that process.
  • Go back to Library > Provisioning Profiles (at the top left). If you have an extra Team Provisioning Profile that is invalid, delete it.
  • 返回 iOS 供应门户。
  • 确保您的开发证书已被吊销(因此您没有)。
  • 现在创建一个新的,并使用涉及使用钥匙串的手动过程(我们回到 2009 年这里)。下载证书。
  • 返回 Xcode > Organizer。插入您的设备。单击设备名称下的“配置文件”。删除设备上当前的所有证书。
  • 单击设备名称。单击底部的“添加到门户”。经历那个过程。
  • 返回 Library > Provisioning Profiles(在左上角)。如果您有一个无效的额外团队供应配置文件,请将其删除。

Now you should have a working system.

现在你应该有一个工作系统。

回答by MANN

Had the same issue. I just deleted all the profiles from the Xcode and then restarted it. Afterwards it prompted for Apple Id credentials and all things were in place (with modified profiles).

有同样的问题。我刚刚从 Xcode 中删除了所有配置文件,然后重新启动它。之后,它提示输入 Apple Id 凭据,并且所有内容都已准备就绪(带有修改后的配置文件)。

回答by 0x8BADF00D

Actually solution pretty strange.

其实解决方案很奇怪。

Looks like you must be member of Mac Developer Program. It helped me.

看起来您必须是 Mac 开发人员计划的成员。它帮助了我。

By adding my account to Mac Developer program issue was fixed!

通过将我的帐户添加到 Mac Developer 程序问题已解决!

Apple Discussion

苹果讨论

回答by v2Next

delete

删除

~/Macintosh HD/User/home/Library/MobileDevice/Provisioning Profiles

~/Macintosh HD/User/home/Library/MobileDevice/Provisioning Profiles

回答by Dhanrajsinh Gohil

You have to use xcode 5.1.1 or later to upload your build.

您必须使用 xcode 5.1.1 或更高版本来上传您的构建。

回答by Nitin Alabur

I am trying to shoot in the dark. I have never come across this issue, even though I have been juggling around a bunch of dev accounts.

我试图在黑暗中拍摄。我从来没有遇到过这个问题,即使我一直在处理一堆开发帐户。

Once your keychain and organizer are clean,

一旦你的钥匙扣和收纳袋干净了,

Try to get your mac spotlight to reindex (search something in the spotlight, select the last row), in the privacy tab, include the MacintoshHD (and any other drives indexed) in the list of locations preventing spotlight to index

尝试让您的 mac 聚光灯重新索引(在聚光灯中搜索某些内容,选择最后一行),在隐私选项卡中,将 MacintoshHD(以及任何其他已编入索引的驱动器)包含在阻止聚光灯索引的位置列表中

repeat the steps above and remove the Macitosh HD from the same list, so that a fresh index is created.

重复上述步骤并从同一列表中删除 Macitosh HD,以便创建新索引。

Let me know if this makes any difference. (I had a similar issue, and this solution worked)

如果这有什么不同,请告诉我。(我有一个类似的问题,这个解决方案有效)

回答by conejo

I had same problem. I've found the solution finaly.
1.Access DevCenter on "Safari".
2.Sign in by your AppleID/PW. I think you cant sign in.
3.Delete saved password in Safari, and Preference / Privacy / enable cookies.
4.If you became to able to Sign in, you can sign in on "Organizer".

我有同样的问题。我终于找到了解决方案。
1.在“Safari”上访问 DevCenter。
2. 使用您的 AppleID/PW 登录。我认为您无法登录。 3.
删除 Safari 中保存的密码,以及首选项/隐私/启用 cookie。
4.如果您可以登录,您可以在“组织者”上登录。

I hope my poor English helps Slav and someone has the same Problem.

我希望我糟糕的英语能帮助 Slav 并且有人有同样的问题。