Failed to Build Nintendo Switch

TheCrossovers

Member
OP
Newcomer
Joined
Sep 9, 2021
Messages
17
Trophies
0
Age
49
XP
45
Country
Korea, South
Could not find a part of the path "C:\NintendoSDK\Resources\SpecFiles\Application.aarch64.lp64.nmeta".
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.IO.StreamReader..ctor (System.String path) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
at UnityEditor.Switch.SwitchMetafileGenerator+MetaDataEditor.Create (System.String path) [0x00002] in C:\buildslave\unity\build\PlatformDependent\Switch\Editor\Managed\SwitchMetafileGenerator.cs:151
at UnityEditor.Switch.SwitchMetafileGenerator.Generate (System.String originalPath, System.String destPath, System.Collections.Generic.List`1[T] documentationOptions, System.String iconDestinationPath) [0x00002] in C:\buildslave\unity\build\PlatformDependent\Switch\Editor\Managed\SwitchMetafileGenerator.cs:185
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) [0x00313] in C:\buildslave\unity\build\PlatformDependent\Switch\Editor\Managed\PostProcessSwitch.cs:180
UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr)

version is 2018.3.14f1, Any help would be appreciated
 

thesjaakspoiler

Well-Known Member
Member
Joined
Nov 20, 2018
Messages
522
Trophies
0
Age
122
XP
695
Country
Afghanistan
The compiler says that it can't find the path : C:\NintendoSDK\Resources\SpecFiles\Application.aarch64.lp64.nmeta
So just check if it is there.
The leaked SDK was missing a bunch of Unity plugins that can apparently be found elsewhere on the internet.
 

TheCrossovers

Member
OP
Newcomer
Joined
Sep 9, 2021
Messages
17
Trophies
0
Age
49
XP
45
Country
Korea, South
solved but i got these errors

Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --platform="Switch" --architecture="ARM64" --configuration="Release" --outputpath="C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\Native\SwitchPlayer.nss" --cachedirectory="C:/Users/ytpre/TheCrossoversSwitch/Assets/../SwitchIL2CPPCache/il2cpp_cache" --plugin="C:/Program Files/Unity/Editor/Data/PlaybackEngines/Switch/Tools\Il2CppPlugin.dll" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\Switch\Tools/il2cpp\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\Switch\Tools/il2cpp\libil2cpp/include" --verbose --enable-stats --stats-output-dir="C:/Users/ytpre/TheCrossoversSwitch/Assets/../SwitchIL2CPPStats" --libil2cpp-static --additional-defines="DEBUGMODE=0,UNITY_RELEASE=1,IL2CPP_USE_SOCKET_MULTIPLEX_IO=1" --configuration="ReleasePlus" --profiler-report --map-file-parser="C:/Program Files/Unity/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Users/ytpre/TheCrossoversSwitch/Temp/StagingArea/Managed --generatedcppdir=C:/Users/ytpre/TheCrossoversSwitch/Temp/StagingArea/il2cppOutput

stdout:
Building SwitchPlayer.nss with SwitchToolChain
Output directory: C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\Native
Cache directory: C:\Users\ytpre\TheCrossoversSwitch\SwitchIL2CPPCache\il2cpp_cache
ObjectFiles: 193 of which compiled: 35
Time Compile: 1385 milliseconds SocketImpl.cpp
Time Compile: 1122 milliseconds Directory.cpp
Time Compile: 890 milliseconds Cryptography.cpp
Time Compile: 854 milliseconds File.cpp
Time Compile: 851 milliseconds Environment.cpp
Time Compile: 850 milliseconds MultiplexIO.cpp
Time Compile: 846 milliseconds TimeZone.cpp
Time Compile: 823 milliseconds LibraryLoader.cpp
Time Compile: 677 milliseconds SwitchFileUtilities.cpp
Time Compile: 578 milliseconds Locale.cpp
Total compilation time: 3175 milliseconds.

Total link time: 20581 milliseconds.
C:\NintendoSDK\Tools\CommandLineTools\MakeNso\MakeNso.exe "C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\Native\SwitchPlayer.nss" "C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\SwitchPlayer.nspd\program0.ncd\code\main" returned true
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\NintendoSDK\Tools\CommandLineTools\MakeMeta\MakeMeta.exe --desc C:\NintendoSDK\Resources\SpecFiles\Application.desc --meta "C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\Application.aarch64.lp64.nmeta" -o "C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\SwitchPlayer.nspd\program0.ncd\code\main.npdm" failed:

Input Desc File: 'C:\NintendoSDK\Resources\SpecFiles\Application.desc'
Input Meta File: 'C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\Application.aarch64.lp64.nmeta'
System.InvalidOperationException: There is an error in XML document (894, 3). ---> System.ArgumentException: Either an undefined element is in use or the definition of an element already exists. :Signature
at MakeMeta.Program.serializer_UnknownElement(Object sender, XmlElementEventArgs e)
at System.Xml.Serialization.XmlSerializationReader.UnknownElement(Object o, XmlElement elem, String qnames)
at System.Xml.Serialization.XmlSerializationReader.UnknownNode(XmlNode unknownNode, Object o, String qnames)
at System.Xml.Serialization.XmlSerializationReader.UnknownNode(Object o, String qnames)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderOutputDescModel.Read19_OutputDescModel(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderOutputDescModel.Read20_Desc()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
at MakeMeta.Program.Main(String[] args)

��ġ: Unity.IL2CPP.Building.ToolChains.Switch.SwitchToolChain.RunCommand(String command, String arguments)
��ġ: Unity.IL2CPP.Building.ToolChains.Switch.SwitchToolChain.FinalizeBuild(ProgramBuildDescription programBuildDescription)
��ġ: Unity.IL2CPP.Building.BuildDescriptions.IL2CPPOutputBuildDescription.FinalizeBuild(CppToolChain toolChain)
��ġ: Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
��ġ: il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
��ġ: il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
��ġ: il2cpp.Program.Main(String[] args)
stderr:

���� ���� ����: Unity.IL2CPP.Building.BuilderFailedException: C:\NintendoSDK\Tools\CommandLineTools\MakeMeta\MakeMeta.exe --desc C:\NintendoSDK\Resources\SpecFiles\Application.desc --meta "C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\Application.aarch64.lp64.nmeta" -o "C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\SwitchPlayer.nspd\program0.ncd\code\main.npdm" failed:

Input Desc File: 'C:\NintendoSDK\Resources\SpecFiles\Application.desc'
Input Meta File: 'C:\Users\ytpre\TheCrossoversSwitch\Temp\StagingArea\Application.aarch64.lp64.nmeta'
System.InvalidOperationException: There is an error in XML document (894, 3). ---> System.ArgumentException: Either an undefined element is in use or the definition of an element already exists. :Signature
at MakeMeta.Program.serializer_UnknownElement(Object sender, XmlElementEventArgs e)
at System.Xml.Serialization.XmlSerializationReader.UnknownElement(Object o, XmlElement elem, String qnames)
at System.Xml.Serialization.XmlSerializationReader.UnknownNode(XmlNode unknownNode, Object o, String qnames)
at System.Xml.Serialization.XmlSerializationReader.UnknownNode(Object o, String qnames)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderOutputDescModel.Read19_OutputDescModel(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderOutputDescModel.Read20_Desc()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
at MakeMeta.Program.Main(String[] args)

��ġ: Unity.IL2CPP.Building.ToolChains.Switch.SwitchToolChain.RunCommand(String command, String arguments)
��ġ: Unity.IL2CPP.Building.ToolChains.Switch.SwitchToolChain.FinalizeBuild(ProgramBuildDescription programBuildDescription)
��ġ: Unity.IL2CPP.Building.BuildDescriptions.IL2CPPOutputBuildDescription.FinalizeBuild(CppToolChain toolChain)
��ġ: Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
��ġ: il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
��ġ: il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
��ġ: il2cpp.Program.Main(String[] args)

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
UnityEditorInternal.IL2CPPBuilder:Run()
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

------------------------------------------------------------------------------------------------------------------------------------------------------------

C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
at UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0012b] in <bf679006b1b84db2a5a44842ef13dc36>:0
at UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) [0x00060] in <bf679006b1b84db2a5a44842ef13dc36>:0
at UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) [0x00086] in <bf679006b1b84db2a5a44842ef13dc36>:0
at UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) [0x002e8] in <bf679006b1b84db2a5a44842ef13dc36>:0
at UnityEditorInternal.IL2CPPBuilder.Run () [0x000de] in <bf679006b1b84db2a5a44842ef13dc36>:0
at UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) [0x0001c] in <bf679006b1b84db2a5a44842ef13dc36>:0
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) [0x003ed] in C:\buildslave\unity\build\PlatformDependent\Switch\Editor\Managed\PostProcessSwitch.cs:213
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
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) (at C:/buildslave/unity/build/PlatformDependent/Switch/Editor/Managed/PostProcessSwitch.cs:537)
UnityEditor.Switch.SwitchBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/Switch/Editor/Managed/ExtensionModule.cs:448)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <bf679006b1b84db2a5a44842ef13dc36>:0)
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) (at <bf679006b1b84db2a5a44842ef13dc36>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
 
General chit-chat
Help Users
    KennieDaMeanie @ KennieDaMeanie: https://thehill.com/homenews/state-watch/591304-black-officer-alleges-racial-profiling-after-bein...