コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Error: Burst internal compiler error: System.IO.FileNotFoundException: Could not find file "/UnityProject/Library/BurstCache/iOS-Arm/Objects/XXXX"

概要

Error: Burst internal compiler error: System.IO.FileNotFoundException: Could not find file "/UnityProject/Library/BurstCache/iOS-Arm/Objects/1adf46aae6cb8ca41f6e7951f74842d5.bc"
File name: '/UnityProject/Library/BurstCache/iOS-Arm/Objects/1adf46aae6cb8ca41f6e7951f74842d5.bc'
  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) [0x0019e] in <67f87c71e3374234905a650fff03ca06>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize) [0x00000] in <67f87c71e3374234905a650fff03ca06>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.IO.File.ReadAllBytes (System.String path) [0x00000] in <67f87c71e3374234905a650fff03ca06>:0 
  at Burst.Compiler.IL.Aot.AotModule.ReadFromDisk (Burst.Backend.Context context) [0x00013] in <f26dfc19a37a442ea317a7ab78395fa6>:0 
  at Burst.Compiler.IL.Server.LibraryCompiler.LoadMethodsFromDisk (Burst.Compiler.IL.NativeCompiler nativeCompiler, Burst.Compiler.IL.Aot.AotCompilerOptions defaultOptions, Burst.Compiler.IL.Aot.AotModuleGroup aotModuleGroup, System.Collections.Generic.IEnumerable`1[T] methodLinkNames, System.String objectDirectory, System.String objectFileExtension, System.Boolean fromCache, System.Boolean isMultiCpu, System.Collections.Generic.Dictionary`2[TKey,TValue] methodReferences, System.Collections.Generic.Dictionary`2[TKey,TValue] perMethodObjectFileLocks) [0x00103] in <f26dfc19a37a442ea317a7ab78395fa6>:0 
  at Burst.Compiler.IL.Server.LibraryCompiler.LinkAndFinalize (Burst.Compiler.IL.Server.CompilationJob request, Burst.Compiler.IL.Server.SharedLibraryCompilationState sharedState, System.Int32 methodGroupIndex, Burst.Compiler.IL.NativeCompiler nativeCompiler, Burst.Compiler.IL.Aot.AotCompilerOptions defaultOptions, Burst.Compiler.IL.Aot.AotModuleGroup aotModuleGroup) [0x0035e] in <f26dfc19a37a442ea317a7ab78395fa6>:0 

Jenkins から iOS ビルドする時に上記のエラーが発生してビルドに失敗することがあった
もう一度ビルドしたらエラーは出ずに正常にビルドできた

Issue