Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved failed build on IL2CPP

Discussion in 'Editor & General Support' started by houssamess, May 20, 2020.

  1. houssamess

    houssamess

    Joined:
    Aug 24, 2018
    Posts:
    4
    Hello i use unity 2013.3.14f1, when i build mw app on scripting backeng MONO, the build works trhough perfectly, but when i change to IL2CPP and selecting ARMv7and ARM64 i get this error message.

    Note: i tried with my app and with a new project with one scene and its the same issue


    Failed running C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe -out=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed/tempStrip -x=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed/../platform_native_link.xml -x=C:/Users/Bassam/AppData/Local/Temp/tmp2be278e3.tmp -x=C:/Users/Bassam/AppData/Local/Temp/tmp40f615fa.tmp -x=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed/TypesInScenes.xml -d=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed --include-unity-root-assembly=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp.dll --include-unity-root-assembly=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.UI.dll --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed --rule-set=Conservative --editor-data-file=C:/Users/Bassam/Desktop/SPHERE/Temp/StagingArea/assets/bin/Data/Managed/EditorToUnityLinkerData.json --platform=Android --enable-engine-module-stripping --engine-modules-asset-file="C:/Program Files/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Whitelists/../modules.asset"

    stdout:
    stderr:

    Exception non g�r�e�: System.IO.FileNotFoundException: Impossible de charger le fichier ou l'assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ou une de ses d�pendances. Le fichier sp�cifi� est introuvable.
    � Unity.Linker.UnityDriver..ctor(String[] args)
    � Unity.Linker.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String&, String&, IEnumerable`1, UnityLinkerRunInformation)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    Hi @houssamess,

    You can try again running Unity as Administrator.
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,789
    I'm not sure that will address the issue in this case. In general, I would not recommend running Unity (or any application) as administrator.

    Can you translate the error message into English?
     
    DiegoDePalacio likes this.
  4. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    I totally agree with not running ANY application in general as Administrator, but sometimes it is useful as a diagnostic tool to find out more about the underline problem IF you're totally sure that the app that you're running as Administrator comes from a reliable source ;)
     
  5. houssamess

    houssamess

    Joined:
    Aug 24, 2018
    Posts:
    4
    Hello, i downloaded unity on my mac and didn’t have this problem anymore. Thank you for your time
     
    DiegoDePalacio likes this.