Assertion failed on expression: 's.buildTarget.platform >= kFirstValidStandaloneTarget'

While trying to build from a VM running Ubuntu 20.04 on Unity 2021.3.9f1, I’m getting this error when invoking BuildPipeline.BuildPlayer():

Assertion failed on expression: 's.buildTarget.platform >= kFirstValidStandaloneTarget'
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
UnityEditor.BuildPipeline:BuildPlayerInternal (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[]) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:448)
UnityEditor.BuildPipeline:BuildPlayer (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[]) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:347)
UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:321)
Panzerfaust.Editor.Builder:Build (int,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,string,bool) (at Assets/Scripts/Editor/Builder.cs:252)
Panzerfaust.Editor.Builder:BuildLinuxClient () (at Assets/Scripts/Editor/Builder.cs:144)

This is a build for StandaloneLinux64 with IL2CPP scripting backend. The Linux-IL2CPP module is installed.

Has anyone seen this error or knows what it means?

Thanks!

Fixed it by deleting /Library/Bee.

Hi i have the same issue and i have tried deleting /Library/Bee but the issue is still there. Anyone know how to handle this

thanks

Same here, anyone find a solution? STUNNED that a game build failure still doesnt give proper errors even in 2021. Even in 1980 they must have had this.

No, we didn’t.