欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 教育 > 幼教 > CocosCreator 3.8 IOS 热更新失败问题解决方案

CocosCreator 3.8 IOS 热更新失败问题解决方案

2024/10/25 13:13:38 来源:https://blog.csdn.net/lizhong2008/article/details/141438626  浏览:    关键词: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 共用。


在这里插入图片描述


版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com