Basic information transfer error: cannot copy

I am really stuck with an error Core Data

that I cannot solve:

Can't migrate SQLite store: Error Domain=NSCocoaErrorDomain Code=134110 The operation couldn’t be completed. (Cocoa error 134110.) UserInfo=0xab4b630 {NSUnderlyingError=0xab4b2e0 The operation couldn’t be completed. (Cocoa error 516.), reason=Can't copy source store to destination store path

      

I can't find any resources about this error ...

Its a pretty simple migration, only one User model with a name property and a created_by property, and for my test I didn't change anything, both models are the same. I just want to make it work. Any ideas?

+3


source to share


1 answer


This error was caused by an attempt to migrate data to an already existing sql store. Also, I didn't load the original store with persistent coordinator at first.

So the lessons learned:



  • Your destination must be on a path that doesn't exist yet. He will create it for you.
  • Download the original store first (the one you want to migrate) before attempting the migration.

Hope this helps someone else.

+5


source







All Articles