简体   繁体   English

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

[英]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: 通过执行以下步骤修复它:

  1. Go to your developer account 转到您的开发者帐户
  2. Find the App ID you are working on 找到您正在使用的应用ID
  3. Click edit. 单击编辑。
  4. On the iCloud section select the radio button that says "Include CloudKit support (requires Xcode 6)" 在iCloud部分,选择“包含CloudKit支持(需要Xcode 6)”的单选按钮 在此输入图像描述

Worked for me. 为我工作。

I solved this by: 我解决了这个问题:

  1. Turn off iCloud capabilities. 关闭iCloud功能。

  2. Change the app's bundle id. 更改应用的捆绑ID。

  3. 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(让你轻松下载配置文件) - 点击下载配置文件。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode iCloud“将“ iCloud容器”权利添加到您的App ID” - Xcode iCloud “Add the ”iCloud containers“ entitlement to your App ID” Xcode 未为 iCloud 和 CloudKit 创建默认容器:“将 iCloud 容器权利添加到您的 App ID”失败 - Xcode not creating default container for iCloud and CloudKit: “Add the iCloud containers entitlement to your App ID” fails 将“iCloud”权限添加到您的 App ID - Add the "iCloud" entitlement to your App ID Xcode修复问题“将“ iCloud容器”权利添加到您的应用程序ID中不起作用 - Xcode Fix Issue "Add the 'iCloud Containers' entitlement to your App ID not working 如何将iCloud权利添加到应用程序ID? - How to add iCloud entitlement to app ID? 您应用内ID的应用内购买权利 - In-app purchase entitlement to your app id iCloud是否有权使用应用程序? - iCloud Entitlement to app? 将HealthKit授权添加到您的应用程序ID-无设备 - Adding HealthKit entitlement to your app ID - No device 将“应用程序组”权利添加到您的权利文件中? - Add the “App Groups” entitlement to your entitlements file? 当Xcode将“ iCloud”权利添加到我的iOS项目的我的App ID中时,它将使Mac的权利无效 - When Xcode adds the “iCloud” entitlement to my App ID for my iOS project, it invalidates the entitlement for Mac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM