Out-of-line definition error on a class but it is declared in the header file [closed] Out-of-line definition error on a class but it is declared in the header file [closed] xcode xcode

Out-of-line definition error on a class but it is declared in the header file [closed]


Fixed it.

I don't know why but Xcode did not save my changes on the header file. I closed Xcode and opened the header file and the changes aren't there. I added the methods again and saved. I opened the CPP file added the new method in it worked fine.

Really weird.