Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question WebGL Build and Publish Error [10:41:27] Building Library... failed with output

Discussion in 'Web' started by HamClinton, Nov 3, 2023.

  1. HamClinton

    HamClinton

    Joined:
    Oct 31, 2023
    Posts:
    4
    I am using Unity 2022.3.12f1 and I have the WebGL Publisher 4.2.3 package installed.

    When I select Publish > WebGL Project > Build and Publish I get the following error:

    [10:41:27] Building Library\Bee\artifacts\WebGL\ManagedStripped failed with output:
    C:\Program Files\Unity\Hub\Editor\2022.3.12f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe @Library\Bee\artifacts\rsp\6451757432521902355.rsp

    upload_2023-11-3_11-7-12.png

    In the selected folder location, I have:
    > Build
    >> Builds.data.gz
    >> Builds.loader

    > TemplateData
    >> 12 files

    index.html
    upload_2023-11-3_11-7-42.png

    When I open the .html file, there's an error message that says "Unable to load file Build/Builds.framework.js.gz! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)".

    upload_2023-11-3_11-8-1.png

    I am fairly junior at programming, so if you know a fix, please share it as simply as you can. :) Thanks in advance!
     
    dhtpdud528 likes this.
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,966
    Try creating a new project with that editor version and build. If it builds and runs, it's an issue with the project. Otherwise it could be an issue with Unity installation, or quite commonly "security" software that tries to "protect" you from working as a developer.

    You could also try to lower stripping level in Player Settings to see if that makes the issue go away, but if it doesn't, set it back because this can noticably decrease build size. Also there's an editor.log which may contain more details about the build process. Feel free to post that log.