I started a Cocos2d- Chimpunk Template. I wrote about a 1000 lines of code then my code sense stopped working. so a deleted the derived data. then my project stopped building. I got 999+ errors, and all of then add were in apple's system Header files.(i get Errors like "can not find Protocol definition NSCopying")
I started a new project and copied all the files, and still got the same problem. Then I deleted all my code and just left the Hello World Template. The project built fine.
Then I started to add my files one by one,and built the project each time I added a class.Each Time it built OK.
By the time I added the last Class file,the project built fine. But then I did a clean and build. Now the project does not build anymore? I am confused. Why if I build them one by one it works but if clean and build everything together it does not work?
Is there a certain order I have to put my Code in?
Please Help I spent all a lot of work on my game, and am very scared I Broke Xcode.
I'm using xcode 4 by the way