URLForUbiquityContainerIdentifier返回nil

时间:2012-03-01 16:25:41

标签: ios icloud entitlements

我正在创建一个通用的ios应用程序。在我的iPhone上测试时,URLForUbiquityContainerIdentifier似乎工作正常,但在我的iPad上没有 - 它总是在那里返回零。我已尝试传递特定权利和nil与完全相同的结果。两台设备都运行5.0.1,其他云功能在两台设备上运行良好。我也可以在两台设备上的iCloud设置的“Manage Storage”部分下看到我的应用程序数据。

        NSFileManager *fileManager = [NSFileManager defaultManager];

        // Migrate datamodel
        NSDictionary *options = nil;

        // this needs to match the entitlements and provisioning profile

        NSURL *cloudURL = [fileManager URLForUbiquityContainerIdentifier:nil];  // <-- comes back as nil on iPad, formatted correctly on iPhone

我一直在研究http://goddess-gate.com/dc2/index.php/post/452教程。

任何想法都将不胜感激!

0 个答案:

没有答案
相关问题