Search Unity

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

Build & Publish not working

Discussion in 'macOS' started by Deleted User, Apr 1, 2022.

  1. Deleted User

    Deleted User

    Guest

    Hi, all!

    I'm following the Set up your first Microgame tutorial, and within Unity, I'm up to the step where I am to Build and Publish. I picked the 2D Platformer Microgram template. Unfortunately, after I click on the Build and Publish button, even after choosing to use WebGL, it doesn't create anything. Nothing appears in the Publish panel nor does anything appear in the WebGL Builds folder.

    Taking a look at the console, I'm presented with this error:

    Code (CSharp):
    1. Exception: System.DllNotFoundException: Unable to load shared library 'libproc' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibproc, 0x0001): tried: 'liblibproc' (no such file), '/usr/local/lib/liblibproc' (no such file), '/usr/lib/liblibproc' (no such file), '/Users/stephendixon/Developer/2D Platformer Microgame/Library/Il2cppBuildCache/WebGL/liblibproc' (no such file)
    2.    at Interop.libproc.proc_pidpath(Int32 pid, Byte* buffer, UInt32 bufferSize)
    Is there a fix to this?
     
    Last edited by a moderator: Apr 1, 2022
  2. eklau

    eklau

    Joined:
    Apr 9, 2022
    Posts:
    1
    I have the same problem
     
  3. unity_421713223albert

    unity_421713223albert

    Joined:
    Dec 21, 2021
    Posts:
    1
    I have the same problem
     
  4. khanhle2603

    khanhle2603

    Joined:
    Aug 7, 2020
    Posts:
    1
    Hi guy,
    Try to create class in Asset folder with name "WebglPreBuildProcessing" and script as below. Note that: the path should change for current python version: Versions/3.10/bin/python3.10

    Then build again. Hope to resolve this case
    1. #if UNITY_EDITOR
    2. using UnityEditor.Build;
    3. using UnityEditor.Build.Reporting;
    4. public class WebglPreBuildProcessing : IPreprocessBuildWithReport
    5. {
    6. public int callbackOrder => 1;
    7. public void OnPreprocessBuild(BuildReport report)
    8. {
    9. System.Environment.SetEnvironmentVariable("EMSDK_PYTHON", "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10");
    10. }
    11. }
    12. #endif

    You can change path following python version
     
  5. deathbynuggetss

    deathbynuggetss

    Joined:
    Aug 29, 2022
    Posts:
    1
    I’m having a similar issue but with uploading and avatar. The build and publish page isn’t showing up at all. No issues are showing either and i really don’t know what else to do at this point.
     
  6. AVRPearn

    AVRPearn

    Joined:
    May 11, 2021
    Posts:
    1
    its not working for me either.
     
  7. MooSoo0731

    MooSoo0731

    Joined:
    Dec 20, 2023
    Posts:
    3
    not working for me either.