Unityで作ったゲームをビルドしたいのにエラーの原因が分からない
学校で作ったゲームを家のPCに持ち帰って、プラットフォームをwebGLにしてビルドしようとしてエラーが発生。調べてみたり、Unityを再インストールしてみたり、エラー文を翻訳にかけてもよく分かりません。保存先はC:\Users\name\Projectになっていて日本語は含まれていません。
プロジェクト名も日本語は使っておらず。すべて英語です(_は使ってます)。Unity2020.3.14f1を管理者として実行してもダメでした。
別のプロジェクトを用意してビルドしたところ、まったくおなじエラーは発生したのを確認しました。
一つ目
Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.3.14f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --useprebuiltbuildprogram --no-colors
stdout:
[ ] Require frontend run. tundra.dag no longer valid. FileSignature timestamp changed: ../../../../../../../../../../../Users/name/AppData/Local/Stevedore/artifacts/7za-win-x64/38c5b39be2e8_a333cfccb708c88459b3812eb2597ca486ec9b416172543ca3ef8e5cd5f80984.zip
[ 0s] Executed build program. Created build graph with 1 nodes.
error: Cannot parse path because it's ..'ing beyond the root: C:/Users/name/UnityWebGL/New Unity Project/Library/Il2cppBuildCache/WebGL/../../../../../../../../../../../.repoconfig (System.ArgumentException)
at NiceIO.NPath.CollapseDoubleDots
at NiceIO.NPath.MakeCompletelyWellFormatted
at NiceIO.NPath..ctor
at NiceIO.NPath.Combine
at NiceIO.NPath.RelativeTo
at System.Linq.Enumerable+WhereSelectArrayIterator`2[TSource,TResult].MoveNext
at Bee.TundraBackend.TundraBackend.AddFileSignature
at Bee.TundraBackend.TundraBackend.AddFileAndGlobSignaturesFromOtherTundraFile
at Bee.StandaloneBeeDriver.CreateBuildGraph
at Bee.StandaloneBeeDriver.InvokeTundra
at Bee.StandaloneBeeDriver.BuildMain
at Bee.StandaloneBeeDriver.Main
stderr:
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List
1[T] arguments, System.Action1[T] setupStartInfo) (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <25e9afc147634a5ca855ab83fab425dd>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action
1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:365)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:913)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <25e9afc147634a5ca855ab83fab425dd>: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 <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
二つ目
Build completed with a result of 'Failed' in 45 seconds (45158 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
三つ目
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <25e9afc147634a5ca855ab83fab425dd>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <25e9afc147634a5ca855ab83fab425dd>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。