我正在尝试将iCloud添加到现有的应用程序中,我最初在模拟器上进行测试,而且工作正常,没有任何问题。 这包括同步和迁移以及所有。
现在,当我想在实际测试设备上测试时,本地商店正在加载完美,而iCloud商店似乎根本没有加载。 没有错误,也没有加载成功。
我尝试过调试,发现我传递的基本数据是正确的,但无法理解其他任何内容。
有没有人遇到过这个?
非常感谢任何指示。
以下是调试日志:
+[PFUbiquitySetupAssistant createActualStoreURLForStoreURL:localPeerID:containerIdentifier:andStoreName:](3877): CoreData: Ubiquity: Created actual store url: file:///private/var/mobile/Library/Mobile%20Documents/CoreDataUbiquitySupport/mobile~9A839BAC-552E-4D3C-AE09-BCAB94B33261/<AppName>/EF117F77-637A-4BD1-9F39-E01FB82B96F1/store/iCloud~com~kapdevelopers~BabyBook
for url: file:///private/var/mobile/Library/Mobile%20Documents/iCloud~com~kapdevelopers~BabyBook/
2014-09-25 08:06:16.523 OurBabyBookPro[2668:1135651] -[PFUbiquitySetupAssistant validateOptionsWithError:](524): CoreData: Ubiquity: <PFUbiquitySetupAssistant: 0x13f500e00>
options: {
NSInferMappingModelAutomaticallyOption = 1;
NSMigratePersistentStoresAutomaticallyOption = 1;
NSPersistentStoreUbiquitousContentNameKey = <appName>;
NSPersistentStoreUbiquitousContentURLKey = "iCloud.com.<companyName>.<appName>";
NSReadOnlyPersistentStoreOption = 0;
}
psc: <NSPersistentStoreCoordinator: 0x1702675c0>
store: (null)
storeURL: file:///private/var/mobile/Library/Mobile%20Documents/iCloud~com~<companyName>~<appName>/
actualStoreURL: file:///private/var/mobile/Library/Mobile%20Documents/CoreDataUbiquitySupport/mobile~9A839BAC-552E-4D3C-AE09-BCAB94B33261/<AppName>/EF117F77-637A-4BD1-9F39-E01FB82B96F1/store/iCloud~com~<companyName>~<appName>
storeMetadata: (null)
storeKV: (null)
storeFileExists: 0
storeFileIsReadOnly: 0
ubiquityEnabled: 1
ubiquityIdentityToken: <0621b923 47ea009e 2096a49d dd496b0b b6319028>
ubiquityRootURL: (null)
ubiquityRootSubpath: iCloud.com.<companyName>.<appName>
ubiquityName: OurBabyBookPro
ubiquityContainerIdentifier: (null)
localPeerID: mobile~9A839BAC-552E-4D3C-AE09-BCAB94B33261
modelVersionHash: nJexgO_Ru2Mp3vSmn0qQ_15mh77BleLe4xUqnI6cZnM=
ubiquityRootLocation: (null)
localRootLocation: (null)
metaKV: (null)
baseline: (null)
baselineFileExists: 0
hasUploadingBaseline: 0
monitorBaslineUploadAsync: 0
didBaselineCopy: 0
baselineKV: (null)
hasStoreMetadataFile: 0
hasStoreMetadataEntry: 0
hasContainerUUID: 0
hasContainerUUIDInStore: 0
needsMetadataRecovery: 0
localPeerReceipt: (null)
receiptKV: (null)
containerIdentifier: (null)
preStoreContainerUUID: EF117F77-637A-4BD1-9F39-E01FB82B96F1
usedExistingUUIDMapping: 1
hasLocalTransactionLogs: 0
votedOffIsland: 0
reapUbiquitousLogs: 0
respondToBaselineRoll: 0
hasMigrationOptions: 1
didMigrateBaseline: 0
storeWasMigrated: 0
replayLogsSynchronously: 0
useLocalAccount: 0
abortSetup: 0
gotExportNotification: 0
干杯, Kunjal