2017-09-28 3 views

Antwort

0

Ja, dann ist das Modell nicht kompatibel. Das einzige, was ich nicht herausgefunden habe, ist, wie man das Modell für ein niedrigeres Ziel als iOS 11 kompiliert, um es mit der alten Welt kompatibel zu machen, wie Apple in seiner Release Notes angibt.

Meine Abhilfe ist jetzt das SDK automatisch schließen ein Mapping-Modell zu lassen:

NSDictionary *pscOptions = @{ 
      NSMigratePersistentStoresAutomaticallyOption : @YES, 
      NSInferMappingModelAutomaticallyOption  : @YES, 
      NSSQLitePragmasOption : @{ @"journal_mode" : @"WAL"}//iOS >=7 Default behaviour 
    }; 

[self.persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType 
                 configuration:nil 
                   URL:[self sourceStoreURL] 
                  options:pscOptions 
                   error:&error] 
Verwandte Themen