Search Unity

IL2CPP Build Failing

Discussion in 'Windows' started by vsnry, Mar 31, 2020.

  1. vsnry

    vsnry

    Joined:
    May 4, 2018
    Posts:
    35
    I tried everything I could to fix it, but nothing is working. I'm on Unity 2020 with Visual Studio Community 2019 and "Desktop Development with C++" installed. Trying to build LZ4HC, but I keep getting a Win32Exception with il2cpp.exe.

    This is the error:

     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    I guess this is the relevant part of the output. Do you have local admin-right on this machine?
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
  4. vsnry

    vsnry

    Joined:
    May 4, 2018
    Posts:
    35
    I installed it normally how I always do, removing admin rigts from IL2CPP worked, for some reason it installed with admin privileges
     
  5. Fritsl

    Fritsl

    Joined:
    Mar 10, 2013
    Posts:
    211
    @Tautvydas-Zilys
    I had no problems until I was going to submit to Google Play ->
    Google systems complained about my file not being set up for high enough API and then when that was fixed, about not compiling to 64 bit.

    (Using latest version of Unity, 2020.1.4f1, with all recommended settings I did find that a bit odd -> "why is default not set up to Google standards?")

    After changing build modes to match what Google asks for, I started to see a lot of reds in the console, and can now only build if I run Unity outside of Unity Hub, with Unity Editor set up to run with Admin rights.