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

相关推荐
_extraordinary_19 分钟前
Linux权限(一)
android·linux·excel
人生!?1 小时前
给小米/红米手机root(工具基本为官方工具)——KernelSU篇
android·linux·智能手机
古苏2 小时前
Android输入事件传递流程系统源码级解析
android
生产队队长4 小时前
ThinkPHP:配置Redis并使用
android·数据库·redis
踏雪羽翼4 小时前
android 差值器的使用
android
Mr-Apple4 小时前
MySQL的Union和OR查询
android·数据库·mysql
yzpyzp4 小时前
如果后台的Long类型的数据返回是null,那么Android客户端的数据bean的kotlin的Long类型的字段接受到数据后是null空指针吗?
android·kotlin
hmywillstronger6 小时前
【Excel】【VBA】根据内容调整打印区域
android·excel
coooliang6 小时前
【Android】ViewPager的使用
android
xvch8 小时前
Kotlin 2.1.0 入门教程(二十五)类型擦除
android·kotlin