Search Unity

Unity2018.1.3f1 : build error : UnityLinker.exe did not run properly! [webGL/Android/iOS xcode]

Discussion in 'Editor & General Support' started by josiperez, Jun 5, 2018.

  1. josiperez

    josiperez

    Joined:
    Jan 12, 2017
    Posts:
    32
    Hi,

    I did not have problems with the same project in 5.6.2f1 personal edition; now, I received this message in 2018.1.0, 2018.1.1 and 2018.1.3, when building to webGL or Android or iOS Xcode - ok with Standalone builds:

    Code (CSharp):
    1. stdout:
    2. Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/UnityLinker.exe --api=NET_4_6 [...]
    3.  
    4. Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/UnityLinker.exe did not run properly! [...]
    5.  
    6. Fatal error in Unity CIL Linker
    7. System.Collections.Generic.KeyNotFoundException:
    8.    em System.ThrowHelper.ThrowKeyNotFoundException()
    9.    em System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    10.    em Unity.Linker.ApiCompatibilityLevelNames.GetApiLevelNames(String apiLevel)
    11.    em Unity.Linker.StrippingResolutionBaseTypeException.FormatMessage(TypeReference baseType, TypeReference type, String apiLevel)
    12.    em Unity.Linker.Steps.ResolveFromMonoBehaviours.IsMonoBehaviourOrScriptableObject(TypeDefinition type, String apiLevel)
    13.    em Unity.Linker.Steps.ResolveFromMonoBehaviours.IsMonoBehaviourOrScriptableObject(TypeDefinition type)
    14.    em System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
    15.    em Unity.Linker.Steps.ResolveFromMonoBehaviours.Process(LinkContext context)
    16.    em Mono.Linker.Pipeline.Process(LinkContext context)
    17.    em Unity.Linker.UnityDriver.Run()
    18.    em Unity.Linker.UnityDriver.RunDriver()
    Environment:
    api compatibility NET 4.x, visual studio community 2017 with Unity Tools, under windows 10.
    What I tried, based on other answers, without success:
    - to delete link.xml
    - to update to the last Unity version stable available: 2018.1.3f1
    - to delete Library directory on the project to force recreate it.
    - can't disable Analytics (Personal version); not use IAP; the project directory do not have special characters (just letters, numbers and one "-").
    Please, sugestions to fix?
    Thanks in advance
     
    Last edited: Jun 5, 2018
    karansinghsengar and SweatyChair like this.
  2. josiperez

    josiperez

    Joined:
    Jan 12, 2017
    Posts:
    32
    Hi,

    Now, I delete IAP that was installed (Window -> Package Manager -> In Project -> Remove IAP 2.0.1).
    Updated to NDK r13b.
    Tried to change to "Script Backend IL2CPP": I have only "Mono" and "IL2CPP" as options; should not there also "net"?

    What key the UnityLinker is looking for?
    Why build for Windows works and build for webGL/Android not work? What could be the difference?

    I really appreciate any directions to try solve this.
     
    SakibZangBD likes this.
  3. SakibZangBD

    SakibZangBD

    Joined:
    Mar 23, 2018
    Posts:
    5
    I am facing the same problem here

    Gosh! Why Google Playstore always makes things so complex.
     
  4. unity_l3Ac7R_V3zAEkQ

    unity_l3Ac7R_V3zAEkQ

    Joined:
    Jul 27, 2018
    Posts:
    9
    i am also facing same Problem.

    any one solve this, kindly reply the same.

    Thanks
     
  5. unity_l3Ac7R_V3zAEkQ

    unity_l3Ac7R_V3zAEkQ

    Joined:
    Jul 27, 2018
    Posts:
    9
    before i am using Unity 2020.1.11 have I used Unity 2019.1.1. am I Used to compile IL2CPP for my project.
    No issues are there, it's generate the build. when I Upgrade my Unity version 2020.1.11 I get UnityLinker.exe did not working properly. I have spent more time (last 5 days) Couldn't resolve problem.

    If any one solve this problem kindly help me..
     
  6. GCI

    GCI

    Joined:
    Oct 9, 2020
    Posts:
    8
    Exception: D:\2019.4.20f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!

    Failed running "D:\2019.4.20f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe" @"C:/Users/ghisl/Downloads/Run, Jump and Duck/Temp/StagingArea/assets/bin/Data/Managed/response.rsp"

    stdout:
    Fatal error in Unity CIL Linker
    System.UnauthorizedAccessException: Access to the path 'C:\Users\ghisl\Downloads\Run' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
    at System.Xml.XmlTextReaderImpl.OpenUrl()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
    at System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace space)
    at Unity.Linker.UnityDriver.ParseArguments(Pipeline p, UnityLinkContext context, ArrayList custom_steps, I18nAssemblies& assemblies)
    at Unity.Linker.UnityDriver.Run()
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()
    at Unity.Linker.UnityDriver.RunDriver()
    stderr:

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  7. mmsimo

    mmsimo

    Joined:
    Mar 9, 2021
    Posts:
    6
    Hello everybody, I am using Unity 2019.4.12f1 and I have the same problem as you.

    Has anyone come to a solution to this when using the WebGL?