Question

I am getting this exception. But I don't know what that means:

2014-02-09 13:44:02.103 HowRU[1731:3e07] +PFUbiquityLocation createUbiquityLocationForPath:withUbiquityRootLocation:: CoreData: Ubiquity: It appears the store file is nested inside the container log directory. This is a really bad idea: U99MTBJLKJ~ch~livingit~howru/howrumodels/StoreContent.nosync/CoreDataUbiquitySupport

I'd love to post some code, but I really don't know what code I should post here.

Can you tell me what this means?

Was it helpful?

Solution

Are you perhaps confusing the various URLs/paths in your setup?

You have the URL for your persistent store. This is usually a path in your sandbox somewhere (e.g. Application Support). You can store it in the ubiquity container with the nosync extension, which looks like what you are doing, but it is not necessary.

In addition to this, there is a second URL which is used by iCloud to store log files for the sync. It's basically a private folder. That is what the NSPersistentStoreUbiquitousContentURLKey setting is for.

Your persistent store should not be inside the log file folder. Make sure the two are separate.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top