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 热更新失败问题解决方案_cocoscreator