Hi everyone,
I got error “Cocos2d: Get data from file(splash_scene/splash.png) failed!” when I ran my iOS cocos2d-x project on Simulator. Here is my code:
// in AppDelegate.cpp
vector searchPath;
searchPath.push_back(“phone”);
CCFileUtils::sharedFileUtils()->setSearchPaths(searchPath);
// in Splash Scene
CCSprite *splashSprite = CCSprite::create(“splash_scene/splash.png”); -->crash here
My resources organised:
- Resources
- splash_scene
- splash.png
- phone
- …
- splash_scene
Please help to to fix it in case I don’t want to change current organization of resources. Thanks.