热更新本地存储出错

引擎版本3.15
模拟器官方说不能实现,
用iPhone 6P真机调试出错如下:
storagePath is /var/mobile/Containers/Data/Application/CBEE0B9B-F0A4-4123-B9B7-C0894BBE0B37/Documents/
Fail to create directory “/var/mobile/Containers/Data/Application/CBEE0B9B-F0A4-4123-B9B7-C0894BBE0B37/Documents_temp/”: You don’t have permission to save the file “Documents_temp” in the folder “CBEE0B9B-F0A4-4123-B9B7-C0894BBE0B37”.
AssetsManagerEx : Fail to download version file, step skipped

You don’t have permission to save the file “Documents_temp” in the folder
您没有将文件“Documents_temp”保存在文件夹中的权限

自力更生,找出问题了,需要自己定义文件目录
var storagePath = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : “./”)+“temp/”;

1赞