I’m used to having code I type from a book fail when it’s supposed to work, but this is a strange experience: I’m at a point where the text says the code is supposed to fail… and it works.
I’m in the data Migration chapter. I just finished creating the v2 data model, and I’ve set it to be the current version. I now have a “Grokking_Recipes_DataModel.xcdatamodeld” and inside it is “v1.xcdatamodel” and “v2.xcdatamodel”, with the latter having a tiny green badge to indicate it’s the current one. I’ve checked to make sure my datamodel looks the same as that of the downloaded code (though everything is, unhappily, named differently).
At the bottom of p78 in the PDF (p71 in the book, but I’m going from the PDF), it says “If we were to run the application right now, we would trip the error that we discussed in Section 5.1…” And yet, when I run it, everything seems to go okay. I’ve done it three times, starting from the version from the previous chapter. I never get an error. What am I doing wrong, that my program won’t crash? :)