URLForUbiquityContainerIdentifier:
always returns nil
NSURL *ubiquityURL = [fileManager URLForUbiquityContainerIdentifier:nil];
if (ubiquityURL == nil)
- app build by xcode 4.5
- app is enabled iCloud
- IOS is logged in into iCloud account
ubiquityURL
is normal in debug, but ubiquityURL
is always nil
after distribution to app store.
It sounds like your release configuration has the wrong entitlements. What is your com.apple.developer.ubiquity-container-identifiers values in your .entitlements plist?