您的位置:首页 > 房产 > 建筑 > CocosCreator3.8 IOS 构建插屏无法去除的解决方案

CocosCreator3.8 IOS 构建插屏无法去除的解决方案

2024/12/27 16:51:34 来源:https://blog.csdn.net/lizhong2008/article/details/141438687  浏览:    关键词:CocosCreator3.8 IOS 构建插屏无法去除的解决方案

CocosCreator3.8 IOS 构建插屏无法去除的解决方案


在实际项目开发过程中,我们通常无需CocosCreator 自带的插屏,一般采用自定义加载页面。

然后在构建IOS 项目时,启用(禁用)插屏无法操作,如下图所示:


在这里插入图片描述


那我们应该怎么解决这个问题呢?

其实很简单,只需要先导出发布配置,手动修改插屏配置选项,再导入即可。


具体操作步骤如下:

step1:

打开项目配置工程,点击右上角 导出按钮

在这里插入图片描述


step2:

选择配置文件存储路径 ,如图:

在这里插入图片描述


step3:

修改发布配置buildConfig_ios.json 文件内容:

在这里插入图片描述


将 “useSplashScreen”: true 修改为 “useSplashScreen”: false。

完整代码如下:

{"name": "gameproject","server": "","platform": "ios","buildPath": "project://build","debug": false,"md5Cache": false,"skipCompressTexture": false,"sourceMaps": false,"polyfills": {"asyncFunctions": false},"experimentalEraseModules": false,"startSceneAssetBundle": false,"bundleConfigs": [],"useBuiltinServer": false,"mainBundleIsRemote": false,"mainBundleCompressionType": "merge_dep","useSplashScreen": false,"bundleCommonChunk": false,"packAutoAtlas": true,"startScene": "ba0b085f-f8d5-40b0-9964-2fd25728d707","outputName": "ios","taskName": "ios-001","scenes": [{"url": "db://assets/main.scene","uuid": "ba0b085f-f8d5-40b0-9964-2fd25728d707"}],"packages": {"engine": {"cleanupImageCache": "inheritProjectSetting","__version__": "1.0.7"},"ios": {"executableName": "","packageName": "com.cecp.youle","renderBackEnd": {"metal": true},"skipUpdateXcodeProject": false,"orientation": {"portrait": false,"upsideDown": false,"landscapeRight": true,"landscapeLeft": true},"osTarget": {"iphoneos": false,"simulator": true},"targetVersion": "12.0","__version__": "1.0.1","developerTeam": "RJDY8JMV34_5CF19EE2639E87C03C3F93CC52B8977CD53B585E"},"native": {"encrypted": false,"xxteaKey": "7cNsG0U+NNWaxK40","compressZip": false,"JobSystem": "none","__version__": "1.0.2"},"cocos-service": {"configID": "0d7f50","services": []},"oops-plugin-hot-update": {"hotUpdateEnable": false,"hotUpdateAddress": "https://cdn.cecppoker.com/v_104","hotUpdateVersion": "1","bundleGameLandlordsEgg": "1","bundleGameSpoiledEgg": "1","bundleGameWeiQiEgg": "1","runFastPoker": "1","xueZhanMajiang": "1","__version__": "1.0.0"}},"__version__": "1.3.6","buildMode": "normal","logDest": "project://temp/builder/log/ios7-11-2024 12-16.log"
}

修改完成后,保存配置文件。


step4: 导入已修改的配置文件。

点击左上角的导入按钮:

在这里插入图片描述


选择配置文件 buildConfig_ios.json :

在这里插入图片描述


导入配置后,启用插屏已取消,如下:

在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com