(Didn’t know if this should go in this section of the forum or not, so please move it if necessary)
Hey guys,
So I’m running into a seemingly minor issue here. I downloaded 4.6.9f1 on my mac to support and update an older project and noticed that theres this weird problem where I cannot build to iOS because it has an issue running IL2CPP.
Here’s the 3 error messages that spit out into the console:
IL2CPP error (no further information about what managed code was being converted is available)
Additional information: Build a development build for more information. Failed to resolve assembly: '/Users/keithbrewer/Unity4-Projects/Mxxxx Pxxxxxx Gxxxx, Version=0.0, Culture=neutral, PublicKeyToken=null'
Failed running /Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/build/il2cpp.exe --convert-to-cpp --copy-level=None --emit-null-checks --enable-array-bounds-check --extra-types.file="/Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/il2cpp_default_extra_types.txt" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/Assembly-UnityScript-firstpass.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/DOTween.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/DOTween43.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/DOTween46.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/P31RestKit.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/PushwooshForWindowsPhone.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/JsonFx.Json.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/NativeToolboxLib.dll" --assembly="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/StagingArea/Data/Managed/UnityEngine.dll" --generatedcppdir="/Users/myname/Unity4-Projects/mycompany/myGameFolder/Temp/il2cppOutput/il2cppOutput"
stdout;
IL2CPP error (no further information about what managed code was being converted is available)
Additional information: Build a development build for more information. Failed to resolve assembly: '/Users/myname/Unity4-Projects/Music Powered Games, Version=0.0, Culture=neutral, PublicKeyToken=null'
il2cpp.exe didn't catch exception: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: '/Users/myname/Unity4-Projects/Music Powered Games, Version=0.0, Culture=neutral, PublicKeyToken=null'
at Unity.IL2CPP.Common.AssemblyLoader.Resolve (IMetadataScope scope) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.Common.AssemblyLoader.Load (System.String name) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter+<Apply>c__AnonStorey9.<>m__0 (System.String path) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator27`2[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Mono.Cecil.AssemblyDefinition].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Mono.Cecil.AssemblyDefinition]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (System.String[] assemblies, NiceIO.NPath outputDir) [0x00000] in <filename unknown>:0
stderr:
Unhandled Exception: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: '/Users/myname/Unity4-Projects/Music Powered Games, Version=0.0, Culture=neutral, PublicKeyToken=null'
at Unity.IL2CPP.Common.AssemblyLoader.Resolve (IMetadataScope scope) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.Common.AssemblyLoader.Load (System.String name) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter+<Apply>c__AnonStorey9.<>m__0 (System.String path) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator27`2[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Mono.Cecil.AssemblyDefinition].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[Mono.Cecil.AssemblyDefinition]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in <filename unknown>:0
at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (System.String[] assemblies, NiceIO.NPath outputDir) [0x00000] in <filename unknown>:0
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String)
UnityEditorInternal.IL2CPPBuilder:Run()
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
UnityEditor.HostView:OnGUI()
Error building Player: Exception: /Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/build/il2cpp.exe did not run properly!
Now do you notice anything funny about the third one? Hint: I’m on a Mac… and its trying to run “il2cpp.EXE”. Seems like a bit of an oversight when they built the mac version out to me.
ANYWAYS… I thought… oh what the hell… I’ll go get 4.6.7 … I KNOW it works. Thats the version I did my release for iOS on.
So I delete 4.6.9f1 from my machine, and I go download the installer for 4.6.7. It finishes downloading, so i go to my downloads folder and double click on “unity-4.6.7.dmg” and run the installer. It finishes installing and I run it.
I try to make a build and BAM same error messages as above… So I’m thinking… “I DO have 4.6.7 right?” so I click Unity->About Unity… and guess what I see… 4.6.9f1!!! I’m like… am I losing my mind? So I uninstall it… and run the installer again… The same thing happens. So I’m like… maybe my installer disk image is messed up so I download it again… and install it again… but low and behold… THE SAME THING HAPPENS.
The 4.6.7 installer is INSTALLING 4.6.9!!! Normally thats not going to be a big deal right? But when 4.6.9 is preventing me from being able to do the one thing I need to do… its a HUGE problem… especially when I’m paying for a pro license every month so that I don’t have to worry about maintaining and bug-fixing my own engine…
So… Unity… when can I expect this to be fixed? Before anyone asks, NO I cannot send in the project in a bug report, I do not own the IP and do not have permission to distribute the project.
Also, some details about my environment: Late 2013 iMac 21" with 8gb ram 2.7 GHz Intel Core i5 running OS X El Capitan