Search code examples
c++unity-game-engineunity-webgl

Unity webGL - build project on MacOS failed


When I try to build unity for webGL I get an error,

Exception: /Applications/Unity/Unity.app/Contents/il2cpp/build/il2cpp.exe did not run properly!

I am using lastest Unity on Mac, so I guess it cannot run il2cpp.exe file, is there any way to use the Xcode compiler instead? or any other solution?


Solution

  • The problem was my python version, it was 2.6, this process required python 2.7.