Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug How do I fix this: Build completed with a result of 'Failed' Building Lib

Discussion in 'Windows' started by DINOGamer123, May 5, 2024.

  1. DINOGamer123

    DINOGamer123

    Joined:
    May 5, 2024
    Posts:
    1
    I have been trying to fix this problem for a long time now
    I have seen many YT tutorials but nothing seems to be working,
    I have only windows as my platform and this game is only made for windows but I chose 3D Mobile core for this game as I have a really slow pc
    I am using unity 2023.2.20f1

    this is the complete error:

    Error1:
    Building Library\Bee\artifacts\WinPlayerBuildProgram\ManagedStripped failed with output:
    C:\Program Files\Unity\Hub\Editor\2023.2.20f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe @Library\Bee\artifacts\rsp\16406726928977724156.rsp
    Fatal error in Unity CIL Linker
    Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'C:\Users\Ayaan\Desktop\GameDev\Projects\Horror Game(Bla, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
    at Unity.Linker.UnityAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
    at Mono.Linker.LinkContext.Resolve(IMetadataScope scope)
    at Unity.Linker.Steps.SetupAndRegisterUnityRootsSteps.ResolvePath(UnityLinkContext context, NPath assemblyPath)
    at Unity.Linker.Steps.CopyModeStep.SetupAssemblies()
    at Unity.Linker.Steps.CopyModeStep.Process()
    at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
    at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at Unity.Linker.UnityDriver.UnityRun(UnityLinkContext context, UnityPipeline p, LinkRequest linkerOptions, TinyProfiler2 tinyProfiler, ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(TinyProfiler2 tinyProfiler, ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()
    at Unity.Linker.UnityDriver.RunDriver()

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Error2:
    Build completed with a result of 'Failed' in 287 seconds (287353 ms)
    Building Library\Bee\artifacts\WinPlayerBuildProgram\ManagedStripped failed with output:
    C:\Program Files\Unity\Hub\Editor\2023.2.20f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe @Library\Bee\artifacts\rsp\16406726928977724156.rsp
    Fatal error in Unity CIL Linker
    Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'C:\Users\Ayaan\Desktop\GameDev\Projects\Horror Game(Bla, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
    at Unity.Linker.UnityAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
    at Mono.Linker.LinkContext.Resolve(IMetadataScope scope)
    at Unity.Linker.Steps.SetupAndRegisterUnityRootsSteps.ResolvePath(UnityLinkContext context, NPath assemblyPath)
    at Unity.Linker.Steps.CopyModeStep.SetupAssemblies()
    at Unity.Linker.Steps.CopyModeStep.Process()
    at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
    at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at Unity.Linker.UnityDriver.UnityRun(UnityLinkContext context, UnityPipeline p, LinkRequest linkerOptions, TinyProfiler2 tinyProfiler, ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(TinyProfiler2 tinyProfiler, ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()
    at Unity.Linker.UnityDriver.RunDriver()

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


    please can someone help me to fix this I worked a lot on this project
     
  2. mike-voorhees

    mike-voorhees

    Unity Technologies

    Joined:
    Aug 9, 2016
    Posts:
    50
    The error means that an assembly named "Bla.dll" is expected to exist but it can't be found. Do you have any assembly named "Bla" in your project somewhere?