Search code examples
iphoneobjective-cxcodearchitecturearmv7

Xcode project not working after replacing project folder


I was working on an xcode project called Test, which I then made a copy of the project folder as a backup. Now , I would like to replace my current Test project with my backup folder, which I did. But now I seem to be having errors like:

_OBJC_IVAR_$_GameLayer.backgroundSheet", referenced from:
      -[ALayer setBackgroundPosition] in ALayer.o

backgroundSheet existed in the newer version of my project, which I have replaced. Why is Xcode still reading it? Thanks!

Edit: When I open my backup project which is in a different location it works fine.


Solution

  • Clean your build using Product -> Clean (shift + cmd + K), and after this build. It should help.