您的位置:首页 > 其它

【坑爹】布署CDN时,坑爹的IDC缓存(游戏补丁包被坑一事小记)

2015-07-31 14:43 639 查看
引子:

游戏项目用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

再也没有发生此现象了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  idc cdn 游戏 补丁 缓存