【问题标题】:Getting error while adding icloud in a app having core data在具有核心数据的应用程序中添加 icloud 时出错
【发布时间】:2012-04-09 18:22:57
【问题描述】:

这是调试器输出:

-[NSFileManager URLForUbiquityContainerIdentifier:]:获取通用容器 URL 时出错:错误 Domain=LibrarianErrorDomain Code=11 "该操作不能 完全的。 (LibrarianErrorDomain 错误 11 - 请求的容器 客户端不允许使用标识符 com.apple.developer.ubiquity-container-identifiers 权利。)” UserInfo=0x28a970 {NSDescription=请求的容器标识符是 客户不允许 com.apple.developer.ubiquity-container-identifiers 权利。}

将应用标识符设置为com.companyname

【问题讨论】:

  • 请使用适当的语法格式化您的代码。但是,您似乎没有正确设置 iCloud 授权证书。
  • 它只是显示错误消息的控制台输出。我的代码签名权利是 com.name 而 icloud 权利是 com.name.Appname,是否会显示此错误
  • 您是否已经检查了应用程序目标中的部分?在底部检查您的权利设置是否与开发人员门户中的权利相对应。

标签: iphone core-data icloud


【解决方案1】:

我通过在应用程序包标识符的开头指定我的团队 ID 解决了这个问题。

这是一个例子

 NSURL *ubiq=[[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:@"G5ykslsdl.com.dribblee.iCloudDemo"];

【讨论】:

    【解决方案2】:

    本教程帮我解决了这个错误:https://goddess-gate.com/dc2/index.php/post/452

    (小心 Team-ID 和 APp-Id ,我在设置项目的过程中也混淆了它们)

    【讨论】:

      猜你喜欢
      • 2018-01-08
      • 1970-01-01
      • 2014-01-29
      • 2011-04-21
      • 2020-12-03
      • 2020-05-22
      • 1970-01-01
      • 1970-01-01
      • 2013-06-03
      相关资源
      最近更新 更多