Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

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

Discussion in 'Linux' started by Claytonious, Sep 9, 2022.

  1. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    907
    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():

    Code (csharp):
    1.  
    2. Assertion failed on expression: 's.buildTarget.platform >= kFirstValidStandaloneTarget'
    3. UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    4. 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)
    5. 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)
    6. UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions) (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:321)
    7. Panzerfaust.Editor.Builder:Build (int,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,string,bool) (at Assets/Scripts/Editor/Builder.cs:252)
    8. Panzerfaust.Editor.Builder:BuildLinuxClient () (at Assets/Scripts/Editor/Builder.cs:144)
    9.  
    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!
     
  2. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    907
    Fixed it by deleting /Library/Bee.
     
  3. risyalfebrianto97

    risyalfebrianto97

    Joined:
    Aug 2, 2022
    Posts:
    8
    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
     
  4. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,636
    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.
     
  5. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    907
    No, we didn't.