None of the above solutions worked for me. (deleting the data received, deleting the target class file and re-adding it, creating a new target class file and copying and pasting the text there, restarting xcode, restarting the Mac, a clean, clean build folder, or any combination that I might think, etc. .)
In the end, what worked was adding a line to the target class (for example, print("dummy") ), and then building the project .
I can only guess why. I assume that none of the other solutions led to a new compilation of the target class file. Somehow xcode "knows" for which classes the code has changed. Adding an empty line or comment line did not work by the way. Xcode is smart, and if you add a comment or an empty line, no new compilation is required. It must be compiled code. Again ... just a hunch. They also have no idea why deleting derived data, a clean and clean build folder do not work.
guido source share