URLForUbiquityContainerIdentifier alway返回nil [英] URLForUbiquityContainerIdentifier alway return nil
本文介绍了URLForUbiquityContainerIdentifier alway返回nil的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
URLForUbiquityContainerIdentifier:
总是返回 nil
NSURL *ubiquityURL = [fileManager URLForUbiquityContainerIdentifier:nil];
if (ubiquityURL == nil)
- 已启用 xcode 4.5
- 应用程式 iCloud
- IOS 已登入 iCloud 帐户
- app build by xcode 4.5
- app is enabled iCloud
- 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屋!
查看全文