Hi,
During a build for the switch platform with Unity 2020.3.36f1 and NDK 14.3.0 I get this exception:
DirectoryNotFoundException: Could not find a part of the path "C:\GitLab-Runner\builds\aXkLTYaQ\0\Game%NINTENDO_SDK_ROOT%\Resources\SpecFiles\Application.aarch64.lp64.nmeta".
at UnityEditor.Switch.PostProcessSwitch.PostProcess (UnityEditor.BuildTarget target, UnityEditor.BuildOptions options, System.String installPath, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String stagingAreaDataManaged, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) [0x00dfe] in C:\buildslave\unity\build\PlatformDependent\Switch\Editor\Managed\PostProcessSwitch.cs:580
at UnityEditor.Switch.SwitchBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) [0x00001] in C:\buildslave\unity\build\PlatformDependent\Switch\Editor\Managed\ExtensionModule.cs:444
at UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) [0x00001] in <786b546700bc48b68852821de5e46ca9>:0
at UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) [0x000dc] in <786b546700bc48b68852821de5e46ca9>:0
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[ ], String, String, BuildTargetGroup, BuildTarget, BuildOptions, String[ ], Boolean)
UnityEditor.BuildPipeline:BuildPlayerInternal(String[ ], String, String, BuildTargetGroup, BuildTarget, BuildOptions, String[ ])
UnityEditor.BuildPipeline:BuildPlayer(String[ ], String, String, BuildTargetGroup, BuildTarget, BuildOptions, String[ ])
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
UnityEditor.BuildPipeline:BuildPlayer(String[ ], String, BuildTarget, BuildOptions)
GameBuilder:BuildGame(String, BuildTarget, BuildOptions) (at Assets_Scripts\Editor\Build\GameBuilder.cs:277)
GameBuilder:BuildGame(BuildOptions, String) (at Assets_Scripts\Editor\Build\GameBuilder.cs:212)
GameBuilder:smile:oBuild() (at Assets_Scripts\Editor\Build\GameBuilder.cs:105)
As you can see in the path I highlighted, the Unity project folder gets concatenated with the nintendo SDK root, so this path will contain two drive letters. This obviously leads to a directory not found exception.
But the path is being concatenated somewhere inside the function UnityEditor.Switch.SwitchBuildPostprocessor.PostProcess
so it is not something I can fix with user code.
Does anyone have an idea what I could try to fix this?
Thanks!