URLForUbiquityContainerIdentifier alway返回nil [英] URLForUbiquityContainerIdentifier alway return nil

查看:366
本文介绍了URLForUbiquityContainerIdentifier alway返回nil的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

URLForUbiquityContainerIdentifier:总是返回 nil

NSURL *ubiquityURL = [fileManager URLForUbiquityContainerIdentifier:nil];
if (ubiquityURL == nil)




  1. 已启用 xcode 4.5

  2. 应用程式 iCloud

  3. IOS 已登入 iCloud 帐户

  1. app build by xcode 4.5
  2. app is enabled iCloud
  3. IOS is logged in into iCloud account

ubiquityURL 在调试中是正常的,但在分发到应用商店后 ubiquityURL 始终为 nil

ubiquityURL is normal in debug, but ubiquityURL is always nil after distribution to app store.

推荐答案

听起来你的发布配置有错误的权利。您的.entitlements plist中的com.apple.developer.ubiquity-container-identifiers值是什么?

It sounds like your release configuration has the wrong entitlements. What is your com.apple.developer.ubiquity-container-identifiers values in your .entitlements plist?

这篇关于URLForUbiquityContainerIdentifier alway返回nil的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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