We are building player with com.unity.burst@1.4.8 on Mac with M2 silicon, XCode 15.0.1 .
Here is the error message.
stdout:
Overriding backend due to platform constraints : ‘burst-llvm-8’
The native compilation step failed. Check previous exception in the log - compiler command line : “xcrun --sdk iphoneos clang -g -c -O3 -miphoneos-version-min=8.0 -arch arm64 -fembed-bitcode -isysroot “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk” -o “/Users/mybuild/Branches/myproject/Temp/Burst/burst-aotqb3o6hfa.7pg/lib_burst_generated_part_0.o” “/Users/mybuild/Branches/myproject/Temp/Burst/burst-aotqb3o6hfa.7pg/lib_burst_generated_part_0.bc””
stderr:
warning: overriding the module target triple with arm64-apple-ios8.0.0 [-Woverride-module]
1 warning generated.
warning: overriding the module target triple with arm64-apple-ios8.0.0 [-Woverride-module]
1 warning generated.
warning: overriding the module target triple with arm64-apple-ios8.0.0 [-Woverride-module]
error: Invalid value reference from metadata
1 error generated.
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x001bf] in /Users/mybuild/Branches/myproject/Packages/com.unity.burst@1.4.8/Editor/BurstAotCompiler.cs:1011
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0003f] in /Users/mybuild/Branches/myproject/Packages/com.unity.burst@1.4.8/Editor/BurstAotCompiler.cs:928
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00000] in /Users/mybuild/Branches/myproject/Packages/com.unity.burst@1.4.8/Editor/BurstAotCompiler.cs:903
at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) [0x007b6] in /Users/mybuild/Branches/myproject/Packages/com.unity.burst@1.4.8/Editor/BurstAotCompiler.cs:444
at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) [0x0000c] in /Users/mybuild/Branches/myproject/Packages/com.unity.burst@1.4.8/Editor/BurstAotCompiler.cs:164
at UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) [0x00033] in <1bf563ecd608461686bf01737dbd8a65>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEditor.Build.BuildPipelineInterfaces:OnPostBuildPlayerScriptDLLs(BuildReport)
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)
… [truncated]
This error only occurs on iOS building process, Android and Standalone Windows can be built without this error.
Error can occurs if –debug=Full parameter was added to the arguments of bcl.exe, but –debug=LineOnly or --debug=None would works .
How can I solve this problem? I’m looking forward to your reply! Thanks!
Hi, thanks for reaching out. Can you try building with a newer version of Burst (1.8.12)? There have been quite a few iOS changes and fixes since 1.4.8.