NSUbiquitousKeyValueStore错误:无有效的com.apple.developer.ubiquity-kvstore-identifier权利 [英] NSUbiquitousKeyValueStore error: no valid com.apple.developer.ubiquity-kvstore-identifier entitlement

查看:413
本文介绍了NSUbiquitousKeyValueStore错误:无有效的com.apple.developer.ubiquity-kvstore-identifier权利的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在将iCloud与我的应用程序集成时遇到问题。

I'm having a problem integrating iCloud with my app.

当我设置测试iCloud可用性时,我收到函数的成功

When I set test out iCloud availability, I receive Success for the function

NSURL *iCloudURL = [fileManager URLForUbiquityContainerIdentifier:@"AppID"];

但在此之后,当我尝试执行时:

but right after this, when I attempt to perform:

NSUbiquitousKeyValueStore *iCloudStore = [NSUbiquitousKeyValueStore defaultStore];

我收到错误

NSUbiquitousKeyValueStore error: no valid com.apple.developer.ubiquity-kvstore-identifier entitlement.

有关如何解决此问题的任何想法?我的App.Entitlements文件使用默认的宏前缀,没有从自动生成的文件中更改。 iCloud肯定在iTunes Connect的AppID上启用。

Any ideas on how to fix this? My App.Entitlements file is using the default macro'd prefixes, nothing changed from the auto-generated file. iCloud is definitely enabled on the AppID in iTunes Connect.

谢谢。

推荐答案

即使我的所有代码,设置,权利等都是正确的,我也遇到了同样的问题。我通过从iPhone上物理删除应用程序来修复它,然后在Xcode中构建并在我的iPhone上运行它并且它有效。只是想补充一点,以防其他解决方案对其他人不起作用。

I had the same problem even though all of my code, settings, entitlements, etc were correct. I fixed it by physically deleting the app from my iPhone, then building in Xcode and running it on my iPhone and it worked. Just wanted to add that in case the other solutions don't work for somebody else out there.

这篇关于NSUbiquitousKeyValueStore错误:无有效的com.apple.developer.ubiquity-kvstore-identifier权利的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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