LuaCocos2d.h has the namespace definition missing. Due to this I was getting alot of “CCObject undeclared” errors
Adding the following replace tag in build.xml fixes the problem
\ <)[CDATA[\#include “LuaCocos2d.h” using namespace cocos2d;]]\>I hope it helps