URLForUbiquityContainerIdentifier alway return nil

浪尽此生 提交于 2019-11-30 19:48:55

问题


URLForUbiquityContainerIdentifier: always returns nil

NSURL *ubiquityURL = [fileManager URLForUbiquityContainerIdentifier:nil];
if (ubiquityURL == nil)
  1. app build by xcode 4.5
  2. app is enabled iCloud
  3. IOS is logged in into iCloud account

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


回答1:


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



来源:https://stackoverflow.com/questions/12769542/urlforubiquitycontaineridentifier-alway-return-nil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!