xcode 将“iCloud 容器”权利添加到您的 App ID

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

Add the “iCloud containers” entitlement to your App ID

iosxcodeicloudios-provisioningapp-id

提问by Danboz

I am trying to fix this issue for hours now. I have checked the App ID and confirmed the iCloud containers. Also i have entered the same in the app entitlements.

我现在几个小时都在努力解决这个问题。我已经检查了 App ID 并确认了 iCloud 容器。我也在应用程序权利中输入了相同的内容。

But there is a always a red mark before "Add the “iCloud containers” entitlement to your App ID". I created the new provisioning profile and removed the expired provision files also. This is the first time i am facing this issue.

但是在“将“iCloud 容器”权利添加到您的 App ID”之前总是有一个红色标记。我创建了新的配置文件并删除了过期的配置文件。这是我第一次面对这个问题。

Is this issue related with the developer certificate signing or something?

这个问题是否与开发者证书签名有关?

enter image description here

在此处输入图片说明

回答by Ashik

I was having the same problem couple of days ago. Fixed it by doing these steps:

几天前我遇到了同样的问题。通过执行以下步骤修复它:

  1. Go to your developer account
  2. Find the App ID you are working on
  3. Click edit.
  4. On the iCloud section select the radio button that says "Include CloudKit support (requires Xcode 6)" enter image description here
  1. 转到您的开发者帐户
  2. 找到您正在处理的 App ID
  3. 单击编辑。
  4. 在 iCloud 部分,选择显示“包括 CloudKit 支持(需要 Xcode 6)”的单选按钮 在此处输入图片说明

Worked for me.

对我来说有效。

回答by matt

I solved this by:

我通过以下方式解决了这个问题:

  1. Turn off iCloud capabilities.

  2. Change the app's bundle id.

  3. Turn on iCloud capabilities.

  1. 关闭 iCloud 功能。

  2. 更改应用程序的包 ID。

  3. 打开 iCloud 功能。

Now everything is regenerated afresh, and the error goes away. Of course, now the bundle id is wrong. But now you can go to the member center, delete the old (faulty) app id and any associated provisioning profiles, and change the bundle id back again.

现在一切都重新生成,错误消失了。当然,现在bundle id是错误的。但是现在您可以转到会员中心,删除旧的(有问题的)应用程序 ID 和任何关联的配置文件,然后再次更改包 ID。

回答by Idrees Khan

For me everything was just fine. I had to close and reopen xcode. Then go to 'Capabilities' and Toggle the 'iCloud' i.e OFF and Then ON it again.

对我来说一切都很好。我不得不关闭并重新打开 xcode。然后转到“功能”并切换“iCloud”即关闭然后再次打开它。

回答by hyouuu

I was trying to add an App ID matching my project's bundle ID, but it still doesn't update the warnings in iCloud.

我试图添加一个与我的项目的包 ID 匹配的 App ID,但它仍然没有更新 iCloud 中的警告。

Then I found that in "General" -> "Signing" it says Target is ad hoc signed, and I tapped the Enable Development Signingbutton, then Xcode started to auto manage the App ID etc and everything turned green :]

然后我发现在“常规”->“签名”中它说Target is ad hoc signed,我点击了Enable Development Signing按钮,然后 Xcode 开始自动管理 App ID 等,一切都变绿了:]

回答by vomako

In my case, under Xcode - General - Signing, the name in the Team field was not correct.

就我而言,在 Xcode - General - Signing 下,Team 字段中的名称不正确。

回答by epx

At least in Xcode 9.1, I had to choose the Team in Signing section (Target -> General pane). The team was already chosen but I had to choose it again to make the error disappear. It might have to do with developer certificate renewal.

至少在 Xcode 9.1 中,我必须在签名部分(目标 -> 常规窗格)中选择团队。该团队已经被选中,但我必须再次选择它才能使错误消失。这可能与开发人员证书更新有关。

回答by Dave

I tried all of the above, in the end all I did was quit Xcode, open it up again, and toggle the iCloud capability off and on again.

我尝试了上述所有方法,最后我所做的只是退出 Xcode,再次打开它,然后再次关闭和打开 iCloud 功能。

回答by KATJ Srinath

  1. I Turned on iCloud
  2. Set the Cloud kit Container through the Apple Developer dashboard to the app I needed
  3. Rename project bundle Identifier from the Xcode 10 and rename back to the original identifier after all fine
  4. Provisional profile got updated
  1. 我打开了 iCloud
  2. 通过 Apple Developer 仪表板将 Cloud kit Container 设置为我需要的应用
  3. 从 Xcode 10 重命名项目包标识符,并在一切正常后重命名回原始标识符
  4. 临时资料已更新

回答by Prakash Raj

Try - delete all provisioning profiles - go to Xcode->preference->account - add your apple id here (makes you easy to download profiles) - Click download profiles.

尝试-删除所有配置文件-转到Xcode->首选项->帐户-在此处添加您的apple id(使您可以轻松下载配置文件)-单击下载配置文件。