-
Notifications
You must be signed in to change notification settings - Fork 256
FAQ troubleshooting Unity Engine
This FAQ page contains information about Unity issues that are not related to the SDK.
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
- Install Python 2.7. You can download it from https://www.python.org/downloads/
- Create a script in the project to set the environment variable EMSDK_PYTHON:
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