Unity 5.2.3 - unable to build to iOS for 3 months now

I have to update a game already live on App Store using Unity 5.2.3.

I have been getting a lot of il2cpp related errors due to which I cannot build anymore for iOS…this has been going on for 3 months now…have tried all Unity versions from 5.1.2 to 5.2.3…as you can imagine it has not been good for our business!

Have earlier posted this issue on Unity forums and posted Bug reports as well but still no solution has been found for this issue!

Am again posting these errors which come up at the time of building for iOS within Unity3D:

ERROR 1/4:
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: ‘…project path… (On Dec 09, Version=0.0, Culture=neutral, PublicKeyToken=null’

ERROR 2/4:
Failed running /Applications/Unity 5.2.3/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 5.2.3/Unity.app/Contents/Frameworks/il2cpp/il2cpp_default_extra_types.txt” --assembly=“…project path… /Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll” --assembly…project path… /Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --assembly…project path… /Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" --assembly=“…project path… /Temp/StagingArea/Data/Managed/UnityEngine.dll” --generatedcppdir=“…project path… /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: ‘…project path… (On Dec 09, Version=0.0, Culture=neutral, PublicKeyToken=null’ il2cpp.exe didn’t catch exception: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘…project path… (On Dec 09, Version=0.0, Culture=neutral, PublicKeyToken=null’ at Unity.IL2CPP.Common.AssemblyLoader.Resolve (IMetadataScope scope) [0x00000] in :0 at Unity.IL2CPP.Common.AssemblyLoader.Load (System.String name) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter+c__AnonStorey1.<>m__0 (System.String path) [0x00000] in :0 at System.Linq.Enumerable+c__Iterator102[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in :0 at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable1 source) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.CollectAssembliesToConvert () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (System.String[ ] assemblies, NiceIO.NPath outputDir) [0x00000] in :0 stderr:

Unhandled Exception: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘…project path… (On Dec 09, Version=0.0, Culture=neutral, PublicKeyToken=null’ at Unity.IL2CPP.Common.AssemblyLoader.Resolve (IMetadataScope scope) [0x00000] in :0 at Unity.IL2CPP.Common.AssemblyLoader.Load (System.String name) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter+c__AnonStorey1.<>m__0 (System.String path) [0x00000] in :0 at System.Linq.Enumerable+c__Iterator102[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in :0 at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable1 source) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.CollectAssembliesToConvert () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (System.String[ ] assemblies, NiceIO.NPath outputDir) [0x00000] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘…project path… (On Dec 09, Version=0.0, Culture=neutral, PublicKeyToken=null’ at Unity.IL2CPP.Common.AssemblyLoader.Resolve (IMetadataScope scope) [0x00000] in :0 at Unity.IL2CPP.Common.AssemblyLoader.Load (System.String name) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter+c__AnonStorey1.<>m__0 (System.String path) [0x00000] in :0 at System.Linq.Enumerable+c__Iterator102[System.String,Mono.Cecil.AssemblyDefinition].MoveNext () [0x00000] in :0 at System.Linq.Enumerable.ToArray[AssemblyDefinition] (IEnumerable1 source) [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.CollectAssembliesToConvert () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.Apply () [0x00000] in :0 at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (System.String[ ] assemblies, NiceIO.NPath outputDir) [0x00000] in :0

UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:68) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection1, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:417) UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:301) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218) UnityEditor.HostView:OnGUI()

ERROR 3/4:
Exception: /Applications/Unity 5.2.3/Unity.app/Contents/Frameworks/il2cpp/build/il2cpp.exe did not run properly! UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:70) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:417) UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:301) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218) UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.iOSBuildPostprocessor pp, BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String stagingAreaDataManaged, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316) UnityEditor.HostView:OnGUI()

ERROR 4/4:
Error building Player: Exception: /Applications/Unity 5.2.3/Unity.app/Contents/Frameworks/il2cpp/build/il2cpp.exe did not run properly!

Really urgently need help on this issue, or else we may have to abandon this project, and make future games projects using other game engines!

Contact support if it’s urgent.

@OnyxM

These errors certainly should not be happening. Can you let me know the bug report numbers you have submitted or point me to the forum posts? I’ll have a look and check on the status of the bug reports.

@JoshPeterson
Thanks for replying, the bug report case number is 731501…can’t find the forum post yet…

I found it, but the forum post was another issue although still related to the il2cpp errors (it gave errors when trying to compile Unity project for iOS made in Windows on a Mac)…

@OnyxM

Thanks, we will have a look at this bug report.