cocos2dx 新建的项目 iOS 模拟器能正常运行,真机就 crash ,
跟踪了一下 发现 auto sprite = Sprite::create(“HelloWorld.png”); 创建失败
在跟踪 发现 std::string FileUtils::getPathForFilename(const std::string& filename, const std::string& resolutionDirectory, const std::string& searchPath) const 方法里面的 std::string path = searchPath;
path += file_path;
path += resolutionDirectory;
path 变量不可用 模拟器就能用
我用的是 cocos2dx3.1.0 xcode7,3
求高手帮助解决