cocos_ios版本的资源目录

开发环境的resource目录,在编译完成后,iOS真机上的对应目录为:

/var/containers/Bundle/Application/8EE6C306-5BA3-43AF-BE9E-5F6C48B38419/lake-mobile.app/res/head.png

如果在真机上要下载网络资源,那么建议的存放方法:

auto path = FileUtils::getInstance()->getWritablePath();

path.append("roles.json");

实际目录为:


/var/mobile/Containers/Data/Application/7F383089-2382-4DCD-AD9D-60C82E46B4A2/Documents/roles.json


猜你喜欢

转载自blog.csdn.net/frankxixu/article/details/79637771