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 共用。

相关推荐
pq113_64 小时前
OrangePi Zero 3学习笔记(Android篇)4 - eudev编译(获取libudev.so)
android·笔记·学习
鸿蒙布道师8 小时前
鸿蒙NEXT开发动画案例3
android·ios·华为·harmonyos·鸿蒙系统·arkui·huawei
鸿蒙布道师8 小时前
AI原生手机:三大技术阵营的终极对决与未来展望
android·人工智能·ios·华为·智能手机·ai-native·hauwei
每次的天空8 小时前
移动应用开发:自定义 View 处理大量数据的性能与交互优化方案
android·java·学习·交互
Huang兄9 小时前
Android 项目中配置了多个 maven 仓库,但依赖还是下载失败,除了使用代理,还有其他方法吗?
android·gradle·maven
Echo-潔10 小时前
iOS创建Certificate证书、制作p12证书流程
ios·ios 生成app打包证书
snail20121110 小时前
Flutter接入ProtoBuff和原生Android通信【性能最优】
android·flutter
難釋懷11 小时前
Android开发-常用布局
android·gitee
墨菲斯托88811 小时前
fakebook
android
s11show_16312 小时前
hz2新建Keyword页面
android