I’ve a problem with this part of the book, my code is correct (I’ve even tried it with the book’s source code) and I’m getting always the fatalError(“Can only handle migrations to version 4!”). My DB is not empty because I first added info with version 2. I checked the error and the problem seems that .isVersion# always is false.
Does anyone know what’s the problem?
I’m reading the last version of the book and currently using Xcode 9.3.
It sounds like you need to set which version is the current version. This is set to version 4:
If you click on one of the versions, then pick the file inspector over on the right, you can see a dropdown that lets you set which version is current: