Tuesday, March 19, 2013

CCB Error with Cocos2d-x 2.0.4 and Cocos Builder (CCB)


Assertion failed: (ccNodeLoadersIterator != this->mCCNodeLoaders.end()), function getCCNodeLoader, file /Users/corytrese/Desktop/Development/SDK/cocos2d-2.0-x-2.0.4/HeroesOfSteel/proj.ios/../../extensions/CCBReader/CCNodeLoaderLibrary.cpp, line 70.

Translation: "You have put the wrong object type into the CCB file, under 'CustomClass' on your CCLayer.

Probably you put in your Scene not your child of  cocos2d::CCLayer and 
public cocos2d::extension::CCBSelectorResolver

Easy to fix once you figure out what that assertion is testing.

2 comments:

Anonymous said...

Thanks for this man.

BitBotch said...

Likewise, thanks. For me this was caused by having a custom class assigned to a sub ccb file and the class didnt exist.