该应用程序缺少必需的权利com.apple.developer.icloud-services' [英] The application is missing required entitlement com.apple.developer.icloud-services'

查看:251
本文介绍了该应用程序缺少必需的权利com.apple.developer.icloud-services'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用我的应用程序中的公共iCloud数据库,该数据库很好用,并且可以在商店中购买。

I'm using a public iCloud database in my app, which works great and is up on the store.

在将我的应用程序更新到新版本(在iOS9上使用Xcode 7)时,我崩溃了:

On updating my app to a new version (with Xcode 7 on iOS9) I get a crash on the line :

CKContainer * container = [CKContainer containerWithIdentifier:@"iCloud.com.identifier"];

*** Terminating app due to uncaught exception 'CKException', reason: 'The application is missing required entitlement com.apple.developer.icloud-services'

此操作仅在更新后首次启动应用程序时发生,并且仅在iOS9上发生。首次启动(更新)后,将启动该应用程序,并且iCloud会按预期工作。

This happens ONLY the first launch of the app after updating, and only on iOS9. After that first (update) launch, the app launches and iCloud works as expected.

我可以通过下载应用程序的当前商店版本,然后从Xcode 7运行更新的应用程序来一致地重新创建崩溃。

I can recreate the crash consistently by downloading the current store version of the app, then running the updated app from Xcode 7.

如果我使用iOS8执行相同的步骤(下载生产应用程序并进行更新),则不会发生相同的崩溃。

If I do the same steps (download production app, and update) using iOS8, I do not have the same crash.

我猜这是一个iOS9或Xcode 7错误。有任何想法吗?

I'm guessing this is an iOS9 or Xcode 7 bug. Any ideas?

编辑:
这实际上是在iOS9上首次启动该应用程序时发生的,无论我是要更新还是刚安装。

EDIT : This actually happens on the first launch of the app on iOS9, regardless of whether I'm updating or just first installing.

推荐答案

打开和关闭iCloud功能似乎已解决。

Toggling the iCloud Capability on and off seems to have fixed it.

这篇关于该应用程序缺少必需的权利com.apple.developer.icloud-services'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆