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

相关推荐
Bervin1213810 小时前
Flutter Android环境的搭建
android·flutter
e***877017 小时前
windows配置永久路由
android·前端·后端
fouryears_2341718 小时前
现代 Android 后台应用读取剪贴板最佳实践
android·前端·flutter·dart
用户19729591889118 小时前
WKWebView的重定向(objective_c)
前端·ios
YF021119 小时前
Frida for MacBook/Android 安装配置
android·前端
雨白20 小时前
Android实战:构建高可维护的日志系统
android
茄子凉心21 小时前
android 开机启动App
android·java·开发语言
lancoff1 天前
#3 Creating Shapes in SwiftUI
ios·swiftui
2501_937193141 天前
神马影视 8.8 版源码:4K 播放优化体验测评
android·源码·源代码管理·机顶盒
lancoff1 天前
#1 How to use Xcode in SwiftUI project
ios·swiftui