Today everything worked fine until I added new CCLayer subclass. When trying to build compiler showed error at

#include <cassert>

in libs/Box2D/Common/b2Settings.h. The reasons is simple – new class file created with xcode has .m extension, just rename it to .mm and everything will work as before.

Today I had such strange warning when compiling cocos2d project in XCode:

And result was even stranger – for even builds everything was ok, for odd one of sprites had much bigger size then it should. The reason was simple, but hard to find – I had 2 files with same name in my resources folder, one in root, one in subfolders. First was small so it displayed as it should, second had different purpose so it was much bigger. So the wrong sprite size happened when xcode used second sprite. Solution is simple – just had to rename one of files, and keep track of their names to avoid such situations in future.