【坑爹】布署CDN时,坑爹的IDC缓存(游戏补丁包被坑一事小记)
2020/04
18
08:04
引子:
游戏项目用Unity开发,补丁放置于CDN上面,由于区分Android和iOS平台,所以添加目录区分,例如:5.0 => 5.1
[appstore目录]
|_5.0_5.1.zip
[android目录]
|_5.0_5.1.zip
现象:
不断有玩家反馈,在更新完之后,无法进入游戏
BugReport, 收到玩家的Unity-Log显示:
The file can not be loaded because it was created for another build target that is not compatible with this platform.
Please make sure to build asset bundles using the build target platform that it is used by.\nFile’s Build target is: 9
原因:
IDC会根据文件名进行缓存
会把 appstore/5.0_5.1.zip 和 android/5.0_5.1.zip 认为是2个相同的文件!
解决:
文件名添加前缀
android目录/5.0_5.1.zip => ios_5.0_5.1.zip
appstore目录/5.0_5.1.zip => android_5.0_5.1.zip
再也没有发生此现象了。
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: 【坑爹】布署CDN时,坑爹的IDC缓存(游戏补丁包被坑一事小记)
Post Link: 【坑爹】布署CDN时,坑爹的IDC缓存(游戏补丁包被坑一事小记)