断言失败 求大神解答!!!!!

Node *rootNode = CSLoader::createNode(“MainScene.csb”);
this->addChild(rootNode);

运行报错:
cocos2d: suffix = csb

              cocos2d: Assert failed: Argument must be non-nil

              Assertion failed: (child != nullptr), function addChild, file /Users/appleren/MyCompany/Game/cocos2d/cocos/2d/CCNode.cpp, line 1032.

void Node::addChild(Node *child)
{
CCASSERT( child != nullptr, “Argument must be non-nil”); //第
1032行
this->addChild(child, child->_localZOrder, child->_name);

}

死活解决不了。。求大神解答啊!!!!

CreateNode没有找到对应的csb文件返回了Null
addChild(NULL)触发了断言

可是我在资源中添加了csb文件啊

仔细检查一下路径 文件名都对不对,
确定没错再打断点进create里看看到底哪出了问题,
一般这种问题就是路径文件名不对