Skip to content

FAQ troubleshooting Unity Engine

Sergio edited this page Oct 10, 2022 · 2 revisions

This FAQ page contains information about Unity issues that are not related to the SDK.

Issue 1: Errors while building for WebGL using some versions of Unity 2019 and 2020

Exception: /Applications/Unity/Hub/Editor/2019.4.39f1/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll did not run properly! This error is actually fixed in the latest Unity versions (https://issuetracker.unity3d.com/issues/webgl-builderror-constant-il2cpp-build-error-after-osx-12-dot-3-upgrade) but there's a workaround if you're experiencing this issue.

Solution:

  • Upgrade Unity to a version that contains the fix for this

OR

public class PreBuildProcessing : IPreprocessBuildWithReport { public int callbackOrder => 1; public void OnPreprocessBuild(BuildReport report) { System.Environment.SetEnvironmentVariable("EMSDK_PYTHON", "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"); } }

You can read more about this issue in this forum thread: https://forum.unity.com/threads/case-1412113-builderror-osx-12-3-and-unity-2020-3-constant-build-errors.1255419/#post-7993017