Thanks I think I have worked that bit out but now I am getting a different error its a SIGABRT and its happening on this line of the void CCNode::addChild(CCNode child) method
CCAssert( child != NULL, "Argument must be non-nil");I went through and put breakpoints on every line in my MainMenuSceneLoader.cpp file as that was where the issue was originating. I notice that it never stopped on
MainMenuScene* layer = (MainMenuScene*)node;This to me seems to be the problem but I dont know why it is happening I have put all the code from the MainMenuSceneLoader.cpp file where this issue is happening below.
Any and all help is greatly appreciated!
cocos2d::extension::CCNodeLoaderLibrary * ccNodeLoaderLibrary = cocos2d::extension::CCNodeLoaderLibrary::newDefaultCCNodeLoaderLibrary();
/* Create an autorelease CCBReader. /
cocos2d::extension::CCBReader ccbReader = new cocos2d::extension::CCBReader;
/* Read a ccbi file. /
cocos2d::CCNode node = ccbReader->readNodeGraphFromFile(“MainMenuScene.ccbi”);
MainMenuScene* layer = (MainMenuScene*)node;