Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Unity 2022.3.5 f1 BuildProgram exited with code 1

Discussion in 'iOS and tvOS' started by okluskyond, Jul 27, 2023.

  1. okluskyond

    okluskyond

    Joined:
    Dec 6, 2017
    Posts:
    34
    Hi,

    after migrating from Unity 2020.3.38f1 to Unity 2022.3.5f1 my build fails, with this unspecific error/exception. What can I do to investigate the issue, it seems that there is no useful info what's wrong.

    Code (CSharp):
    1. BuildFailedException: Player build failed: Internal build system error. BuildProgram exited with code 1.
    2. System.IndexOutOfRangeException: Index was outside the bounds of the array.
    3.    at iOSPlayerBuildProgram.SetupTargetForInludedFile(IncludedFile file)
    4.    at iOSPlayerBuildProgram.AddProjectFile(NPath srcPath, NPath dstPath, Boolean addToEmbeddedBinaries, String targetGUID, Boolean shouldAddToProject, SymlinkType symlinkType)
    5.    at iOSPlayerBuildProgram.SetupCopyPlugin(NPath pluginPath, NPath pluginDest, Plugin plugin)+MoveNext()
    6.    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
    7.    at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
    8.    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupCopyPlugins() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 725
    9.    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.<SetupPlayerBuild>b__94_0() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 187
    10.    at Bee.Core.TinyProfiler2Base.Section[T](String label, Func`1 func, Dictionary`2 metadata)
    11.    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupPlayerBuild() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 187
    12.    at iOSPlayerBuildProgram.SetupPlayerBuild()
    13.    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 182
    14.    at PlayerBuildProgramTypeWrapper.Run(String[] args)
    15.    at Program.Main(String[] args)
    16. UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Modules/BeeBuildPostprocessor.cs:718)
    17. UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <3dd88c6de12a4c4eaa93ea2024962fbe>:0)
    18. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:190)
    19.  
    Thanks for any help/suggestions
     
  2. tmars

    tmars

    Joined:
    Jul 26, 2013
    Posts:
    42
    same here after updating to 2022.3.5f1.
    2022.3.4f1 is ok
     
    Last edited: Jul 27, 2023
  3. okluskyond

    okluskyond

    Joined:
    Dec 6, 2017
    Posts:
    34
    @tmars do you have any easy repro? I've got only some third party libraries in large project which would be really hard to make small repro project from
     
  4. tmars

    tmars

    Joined:
    Jul 26, 2013
    Posts:
    42
    unfortunatelly no, we're back to 2022.3.4f1 until the issue will be fixed.