Core Data で新しいデータベース モデル バージョンへの移行を実行しようとしています。によってマッピング モデルが正常に検出されました。
NSMappingModel *mappingModel = [NSMappingModel mappingModelFromBundles:nil
forSourceModel:sourceModel
destinationModel:destinationModel];
しかし、移行フェーズ
migrationSuccess = [standardMigrationManager migrateStoreFromURL:storeSourceUrl
type:NSSQLiteStoreType
options:sourceStoreOptions
withMappingModel:mappingModel
toDestinationURL:storeDestUrl
destinationType:NSSQLiteStoreType
destinationOptions:destinationStoreOptions
error:&error];
エラーを返す
Error Domain=NSCocoaErrorDomain Code=134110 "The operation couldn\u2019t be completed. (Cocoa error 134110.)" UserInfo=0x96f0350 {NSUnderlyingError=0x96d94e0 "The operation couldn\u2019t be completed. (Cocoa error 134100.)", reason=Can't add destination store}
私は以前に移行で多くの問題に遭遇しましたが、誰もこのように見えませんでした. これの理由と解決方法は何ですか?
よろしく、
ミハウ