Mac cocos2dx 新建的项目 iOS 模拟器能正常运行,真机就 crash ,这是为什么

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

求高手帮助解决

我也是模拟器正常,真机就crash,不过不是png而是粒子效果(3.11)

我已经解决,是图片路径的问题,把图片放到res里就好了