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

相关推荐
私人珍藏库20 分钟前
[Android] Alarm Clock Pro 11.1.0一款经典简约个性的时钟
android·时钟
消失的旧时光-19432 小时前
ScheduledExecutorService
android·java·开发语言
小糖学代码3 小时前
MySQL:14.mysql connect
android·数据库·mysql·adb
彩旗工作室4 小时前
将iOS/macOS应用上架至App Store
macos·ios·应用商店·appstore
怪兽20145 小时前
请谈谈什么是同步屏障?
android·面试
帅锅锅0075 小时前
SeLinux 全面详解
android·linux
只想搞钱的肥仔6 小时前
Android thermal (5)_cooling device(下)
android
某空m6 小时前
【Android】BottomNavigationView实现底部导航栏
android·java
江东小bug王6 小时前
深入解析 iOS 与 macOS 应用程序生命周期(完整指南)
macos·ios
撩得Android一次心动7 小时前
Android 四大组件桥梁 —— Intent (意图) 详解
android