Unity 2023.2.15.f1编译Nintendo Switch项目失败求助
Unity 2023.2.15.f1 编译至Nintendo Switch时构建失败:找不到指定路径
我使用Unity 2023.2.15.f1将项目编译至Nintendo Switch平台时,构建过程中出现以下错误:
Building Library\Bee\artifacts\AppPkg\6w12j\main.npdm failed with output: The system cannot find the path specified. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Build completed with a result of 'Failed' in 4 seconds (4419 ms) Building Library\Bee\artifacts\AppPkg\6w12j\main.npdm failed with output: The system cannot find the path specified. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) Build failed
错误截图:
解决建议
- 检查Switch SDK路径配置:打开Unity的
Edit > Project Settings > Nintendo Switch,确认SDK路径指向正确的Nintendo Switch开发工具包目录,路径中不要包含中文或特殊字符。 - 清理Bee构建缓存:删除项目目录下的
Library\Bee文件夹,重启Unity后重新构建。 - 验证NPDM文件配置:确认项目中
main.npdm的配置参数正确,必要时通过Switch构建工具重新生成该文件。 - 排查目录权限:确保Unity进程拥有
Library\Bee\artifacts\AppPkg目录的读写权限,避免系统权限拦截导致路径无法访问。 - 版本兼容性排查:尝试升级Unity到2023.2系列的最新补丁版本,或更新Nintendo Switch SDK至与当前Unity版本兼容的版本。
内容的提问来源于stack exchange,提问作者Pinnacle Luminary
相关产品推荐
相关产品推荐

