lhunath / UbiquityStoreManager

Implements Core Data + iCloud, deals with all the nasty stuff and gives you a clean API.
http://lhunath.github.io/UbiquityStoreManager
Apache License 2.0
391 stars 37 forks source link

no iCloud available. Don't falling back to local cloud store? #17

Closed MasterOP22 closed 10 years ago

MasterOP22 commented 11 years ago

Hey again,

and i probably found an error, when logged off from an iCloud Account over Settings. After logged off, the Store Manager should fall back to his local cloud store file with iOS 7?

But the Store Manager do this:

2013-10-18 00:10:37.258 SeeMedia[3169:2e07] -PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:: CoreData: Ubiquity: Andre~simEEEF907B-8659-50FD-889A-B60E5405E8E1:32FE4655-603F-4BE0-84C2-B1C958B095CC Using local storage: 1 2013-10-18 00:10:37.259 SeeMedia[3169:580b] StoreManager: Stores will change. Notifying application to reset its UI. 2013-10-18 00:10:37.326 SeeMedia[3169:a0b] StoreManager: Identity token changed: <8705bee0 fd3f041e 0bc0aaf4 f93c8cda 47bcd0db> -> (null) 2013-10-18 00:10:37.330 SeeMedia[3169:a0b] StoreManager: Identity token changed: (null) -> (null) 2013-10-18 00:10:37.331 SeeMedia[3169:580b] StoreManager: Reloading store... 2013-10-18 00:10:37.331 SeeMedia[3169:580b] StoreManager: Cannot load cloud store: User is not logged into iCloud. Falling back to local store. 2013-10-18 00:10:37.332 SeeMedia[3169:580b] StoreManager: Will load local store. 2013-10-18 00:10:37.332 SeeMedia[3169:580b] StoreManager: Clearing stores... 2013-10-18 00:10:37.332 SeeMedia[3169:2e07] -PFUbiquitySwitchboardEntry containerIdentifierChanged:: CoreData: Ubiquity: <PFUbiquitySwitchboardEntry: 0xa021780>: localPeerID: Andre~simEEEF907B-8659-50FD-889A-B60E5405E8E1 ubiquityRootURL: <PFUbiquityLocation: 0xa250f00>: /Users/Andre/Library/Application Support/iPhone Simulator/7.0/Library/Mobile Documents/5X6CZTJ38P~de~hochschulte~seemedia~SeeMedia/CloudLogs/32FE4655-603F-4BE0-84C2-B1C958B095CC registeredCoordinators: { "32FE4655-603F-4BE0-84C2-B1C958B095CC" = "{(\n <_PFWeakReference: 0xa03a430>\n)}"; }

Error adding store for new account: Error Domain=NSCocoaErrorDomain Code=134080 "(null) is not a valid file URL" UserInfo=0x8a68820 {NSLocalizedDescription=(null) is not a valid file URL} 2013-10-18 00:10:37.333 SeeMedia[3169:580b] StoreManager: Will clear stores. Notifying application to reset its UI. 2013-10-18 00:10:37.334 SeeMedia[3169:580b] StoreManager: Loading store: SeeMedia.sqlite 2013-10-18 00:10:37.338 SeeMedia[3169:580b] StoreManager: Successfully loaded local store. 2013-10-18 00:10:37.339 SeeMedia[3169:580b] StoreManager: Reloading store... 2013-10-18 00:10:37.339 SeeMedia[3169:580b] StoreManager: Will load local store. 2013-10-18 00:10:37.339 SeeMedia[3169:580b] StoreManager: Clearing stores... 2013-10-18 00:10:37.340 SeeMedia[3169:580b] StoreManager: Will clear stores. Notifying application to reset its UI. 2013-10-18 00:10:37.343 SeeMedia[3169:580b] StoreManager: Loading store: SeeMedia.sqlite 2013-10-18 00:10:37.346 SeeMedia[3169:580b] StoreManager: Successfully loaded local store. 2013-10-18 00:10:37.347 SeeMedia[3169:580b] StoreManager: Finished loading local store (UbiquityStoreErrorCauseNoError). Notifying application to refresh its UI.

lhunath commented 11 years ago

When the user logs out of iCloud, USM falls back to the local store. The logs show it's doing this correctly.

I'm not sure I understand what you'd like it to do instead. Care to clarify the problem?