cocos create 3.6.2 刚进入游戏就包错

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|USE_TEXTURE0 compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-clear-stencil|sprite-vs:vert|sprite-fs:frag compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA0|USE_ALPHA_TEST1|USE_TEXTURE1|IS_GRAY0 compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA0|USE_TEXTURE1|IS_GRAY0 compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA1|USE_TEXTURE1|IS_GRAY0 compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA1|USE_TEXTURE1|IS_GRAY1 compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-graphics|vs:vert|fs:frag compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-unlit|unlit-vs:vert|unlit-fs:frag|CC_USE_DEBUG_VIEW0|CC_USE_HDR1 compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: builtin-spine|sprite-vs:vert|sprite-fs:frag compile succeed.

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-base/SPIRVUtils.cpp: line 141

18:35:14 [ERROR]: GLSL Linking Failed:

ERROR: Linking fragment stage: Missing entry point: Each stage requires one entry point

18:35:14 [INFO]: util/splash-screen|splash-screen-vs:vert|splash-screen-fs:frag compile succeed.

2023-02-22 18:35:14.690245+0800 twMrsh-mobile[1227:687044] Compiler failed to build request

2023-02-22 18:35:14.696141+0800 twMrsh-mobile[1227:687044] Compiler failed to build request

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLPipelineState.mm: line 382

18:35:14 [ERROR]: Failed to create MTLRenderPipelineState: RasterizationEnabled is true but the vertex shader’s return type is void

18:35:14 [ERROR]: [ERROR] file /Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLPipelineState.mm: line 382

18:35:14 [ERROR]: Failed to create MTLRenderPipelineState: RasterizationEnabled is true but the vertex shader’s return type is void

validateMTLWinding:2733: failed assertion `frontFacingWinding is not a valid MTLWinding.'

无语解决了,原来首包包体里的 脚本代码一定要用IOS 来打,用安卓的不行

IOS 和安卓 发布出来的脚本是略有不同的,热更最好IOS 和安卓要分开热更路径, 以免触发雷区

遇到这个问题了,为了避免以后踩雷,也打算分别热更了。

3.7.3好像也有这个问题,使用安卓的资源在ios上面就报这个错误,这个是引擎本身的问题还是需要我们设置一下

首包包体里的脚本代码是指什么,我记得之前版本是可以安卓和ios共用热更新资源的啊,我也遇到了这个问题。只能分开打包了吗?我是用3.7.4

我3.7.4也遇到这个问题,怎么解决呢,只能分开热更新了吗

首包包体里的脚本代码是指 你的IOS包里面放的脚本 必须是 Mac打出来的 脚本文件,使用windows系统打出来的 放进去就会报错