This is how I moved the master data to a shared container in my application. I do this when the application starts.
NSUserDefaults* sharedDefs = [GPMapCore sharedCore].sharedUserDefaults; if (![sharedDefs boolForKey:@"CoreDataMovedToExtension"]) { NSURL* oldLocation = GET_LOCATION_OF_CORE_DATA_SQLITE_FILE(); NSURL* newLocation = GET_LOCATON_TO_MOVE_THE_SQLITE_FILE_TO(); if ([[NSFileManager defaultManager] fileExistsAtPath:[oldLocation filePathString]]) {
source share