本文主要是介绍CocosCreator 3.8 IOS 热更新失败问题解决方案,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
CocosCreator 3.8 IOS 热更新失败问题解决方案
问题描述
- Creator 版本: 3.8.0
- 目标平台: ios 模拟器/真机
- 重现方式:安卓构建版本生成的热更新包,上传到OSS,使用ios进行更新。
19:18:36 [ERROR]: [ERROR] file /Applications/Cocos/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLPipelineState.mm: line 219
19:18:36 [ERROR]: Failed to create pipeline state, please check if shader/pileinelayout match with each other!
19:18:36 [ERROR]: [ERROR] file /Applications/Cocos/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLPipelineState.mm: line 219
19:18:36 [ERROR]: Failed to create pipeline state, please check if shader/pileinelayout match with each other!
19:18:36 [ERROR]: [ERROR] file /Applications/Cocos/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLPipelineState.mm: line 219
19:18:36 [ERROR]: Failed to create pipeline state, please check if shader/pileinelayout match with each other!
19:18:36 [ERROR]: [ERROR] file /Applications/Cocos/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLPipelineState.mm: line 219
19:18:36 [ERROR]: Failed to create pipeline state, please check if shader/pileinelayout match with each other!
原因:
安卓构建的时候渲染后端选择的是 GLES2/3 不能和IOS共用。
解决方案:
安卓构建的时候渲染后端勾选VULKAN,才能与IOS 共用。
这篇关于CocosCreator 3.8 IOS 热更新失败问题解决方案的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!