Chapter 6: error - invalid redeclaration of

In the section under the subheader “A manual migration”, I was getting errors that said “invalid redeclaration of…” in Attachment.swift

I started over from the beginning, paying close attention to each instruction, and got the same error.

Eventually I figured out that in the Data Model Inspector for the Attachment entity, I needed to set Codegen to “Manual/None”. This is shown in the screenshot, but not mentioned in the text instructions.

Oh, something else I just noticed about this section that could be changed in the next revision: the text says "…and the Module to Current Product Module" but that doesn’t match the screenshot, where it is set to “UnCloudNotes”

If I understand correctly, both should work, but the tutorial should be consistent to avoid confusion.

This topic was automatically closed after 166 days. New replies are no longer allowed.