[英]Add the “iCloud containers” entitlement to your App ID
I am trying to fix this issue for hours now. 我现在试图解决这个问题几个小时。 I have checked the App ID and confirmed the iCloud containers.
我检查了应用程序ID并确认了iCloud容器。 Also i have entered the same in the app entitlements.
我也在应用程序权利中输入了相同的内容。
But there is a always a red mark before "Add the “iCloud containers” entitlement to your App ID". 但在“添加”iCloud容器“应用程序ID的权利”之前总是有一个红色标记。 I created the new provisioning profile and removed the expired provision files also.
我创建了新的配置文件,并删除了过期的配置文件。 This is the first time i am facing this issue.
这是我第一次面对这个问题。
Is this issue related with the developer certificate signing or something? 此问题与开发人员证书签名有关吗?
I was having the same problem couple of days ago. 几天前我遇到了同样的问题。 Fixed it by doing these steps:
通过执行以下步骤修复它:
Worked for me. 为我工作。
I solved this by: 我解决了这个问题:
Turn off iCloud capabilities. 关闭iCloud功能。
Change the app's bundle id. 更改应用的捆绑ID。
Turn on iCloud capabilities. 打开iCloud功能。
Now everything is regenerated afresh, and the error goes away. 现在一切都重新生成,错误就消失了。 Of course, now the bundle id is wrong.
当然,现在捆绑包ID是错误的。 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.
但现在您可以转到成员中心,删除旧的(错误的)应用程序ID和任何关联的配置文件,然后再次更改软件包ID。
For me everything was just fine. 对我来说一切都很好。 I had to close and reopen xcode.
我不得不关闭并重新打开xcode。 Then go to 'Capabilities' and Toggle the 'iCloud' ie OFF and Then ON it again.
然后转到'功能'并切换'iCloud'即关闭然后再打开它。
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 Signing
button, then Xcode started to auto manage the App ID etc and everything turned green :] 然后我发现在“常规” - >“签名”中它表示
Target is ad hoc signed
,我点击了Enable Development Signing
按钮,然后Xcode开始自动管理应用程序ID等,一切都变为绿色:]
就我而言,在Xcode - General - Signing下,Team字段中的名称不正确。
At least in Xcode 9.1, I had to choose the Team in Signing section (Target -> General pane). 至少在Xcode 9.1中,我必须选择Team in Signing部分(Target - > General窗格)。 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,再次打开它,然后再关闭iCloud功能。
尝试 - 删除所有配置文件 - 转到Xcode-> preference-> account - 在这里添加你的苹果ID(让你轻松下载配置文件) - 点击下载配置文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.