Cross compilation job Ionic.Zlib.dll failed

Create issue
Issue #38 invalid
Quân Nguyễn created an issue

I got an issue when build for IOS( build on MAC):

Cross compilation job Ionic.Zlib.dll failed. UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity/Unity.app/Contents/PlaybackEngines/iOSSupport/Tools/OSX/mono-xcompiler --aot=full,asmonly,nodebug,static,outfile="Ionic.Zlib.dll.s" "Ionic.Zlib.dll" current dir : /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed Env: XPC_FLAGS = '0x0' Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.Xp3xUUZrae/Render' XPC_SERVICE_NAME = '0' LOGNAME = 'quanarmy' TMPDIR = '/var/folders/f6/2xxw1vhn3xq8ydrx027zf8f00000gn/T/' MONO_PATH = '/Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed' SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.TnIvYlGy4w/Listeners' PWD = '/Volumes/WORK/Workspace/Unity/Projects/PicoPico' GC_DONT_GC = 'yes please' _ = '/Applications/Unity/Unity.app/Contents/MacOS/Unity' __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x0' SHELL = '/bin/bash' GAC_PATH = '/Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed' USER = 'quanarmy' HOME = '/Users/quanarmy' PATH = '/usr/bin:/bin:/usr/sbin:/sbin' SHLVL = '2' result file exists: False. Timed out: False stdout: Mono Ahead of Time compiler - compiling assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dllMissing method System.Console::set_ForegroundColor(ConsoleColor) in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/mscorlib.dll, referenced in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dllThe class Ionic.Zlib.DeflateStream could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class System.IO.MemoryStream could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMissing method .ctor in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dll, type System.IO.MemoryStreamMissing method .ctor in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dll, type System.IO.MemoryStreamThe class Ionic.Zlib.GZipStream could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cMissing method .ctor in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dll, type System.IO.MemoryStreamMissing method .ctor in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dll, type System.IO.MemoryStreamThe class Ionic.Zlib.Tree could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Ionic.Zlib.DeflateManager could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Ionic.Zlib.DeflateManager could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Config could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Ionic.Zlib.Tree could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Ionic.Zlib.InternalConstants could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Ionic.Zlib.InternalConstants could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Ionic.Zlib.ZlibStream could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cMissing method .ctor in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dll, type System.IO.MemoryStreamMissing method .ctor in assembly /Users/quanarmy/New Unity Project 1/Temp/StagingArea/Data/Managed/Ionic.Zlib.dll, type System.IO.MemoryStreamThe class Ionic.Zlib.ZlibBaseStream could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class Ionic.Zlib.ZlibBaseStream could not be loaded, used in Ionic.Zlib, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5cThe class System.ArgumentOutOfRangeException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eThe class System.Collections.Generic.Comparer1 could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eInvalid type char[] for instance field System.Enum:split_charThe class System.ArgumentOutOfRangeException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e* Assertion at method-to-ir.c:7982, conditioncosts > 0' not met stderr:

at UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile) [0x00000] in <filename unknown>:0 at UnityEditor.MonoCrossCompile.CrossCompileAOT (BuildTarget target, System.String crossCompilerAbsolutePath, System.String assembliesAbsoluteDirectory, CrossCompileOptions crossCompileOptions, System.String input, System.String output, System.String additionalOptions) [0x00000] in <filename unknown>:0 at UnityEditor.MonoCrossCompile+JobCompileAOT.ThreadPoolCallback (System.Object threadContext) [0x00000] in <filename unknown>:0 UnityEditor.HostView:OnGUI()

Comments (4)

  1. Guilherme Augusto Almeida Filo Maia repo owner
    • changed status to open

    Hm, I'll take a look at that, I hope the problem is not with the dll but some configuration...

  2. Quân Nguyễn reporter

    I have just found the reason! The problem is about API Compatibility Level. Normally, I use .NET 2.0 subset. I changed it to .NET 2.0. It's work. I can build IOS project. I like this plugin! It's useful. ( oh! my bad English :)) )

  3. Guilherme Augusto Almeida Filo Maia repo owner

    Oh thanks for finding the problem :)

    I'm relieved it's nothing related to the dll :P

    If you find any bug, please report it, and if you need general support, feel free to use the http://forum.x-unitmx.org/

  4. Log in to comment