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

相关推荐
星霜笔记1 小时前
GitMob — 手机端 GitHub 管理工具
android·kotlin·github·android jetpack
LiuYaoheng1 小时前
问题记录:Android Studio Low memory
android·ide·android studio
独隅2 小时前
Python 标准库 (Standard Library) 全面使用指南
android·开发语言·python
always_TT2 小时前
strlen、strcpy、strcat等常用字符串函数
android
qqty12172 小时前
MySQL Workbench菜单汉化为中文
android·数据库·mysql
2401_895521342 小时前
MySQL中between and的基本用法
android·数据库·mysql
zhensherlock3 小时前
Protocol Launcher 系列:App Store 精准引流与应用推广
javascript·macos·ios·typescript·iphone·mac·ipad
云云鬼才3 小时前
CoCo编辑器、图形化编程怎么调用Scheme(跳转应用)
android
Jason__Young5 小时前
Android ViewModel为什么能够跨越Activity的生命周期?
android
TechMix6 小时前
【性能优化】RenderThread各工作阶段梳理
android·性能优化