Skip to content

Instantly share code, notes, and snippets.

@ashtom
Created April 21, 2009 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashtom/99456 to your computer and use it in GitHub Desktop.
Save ashtom/99456 to your computer and use it in GitHub Desktop.
if (![persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeUrl options:nil error:&error]) {
if ([error code] == NSPersistentStoreIncompatibleVersionHashError) {
NSLog(@"Persistent Store Incompatible Version error. Please check %@", storeUrl);
} else {
NSLog([error description]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment