So I see there is an init method in RestKit’s reference: objectStoreWithStoreFilename:inDirectory:usingSeedDatabaseName:managedObjectModel:delegate which suppose to initialize objectStore in specified Directory. “inDirectory” parameter accepts NSString. I’ve tried @”Library/Caches” and [self.applicationCachesDirectory absoluteURL] where self.applicationCachesDirectory returns URL of the Caches directory but I’m getting exceptions.
Please tell me how can I specify “Library/Caches” in this method in order to save sqlite DB in the Caches directory instead of Documents?
Got it working. I’ve created helper method to get Caches folder path as NSString
and then passed it to the objectStore init method: