Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

IL2CPP Error build for IOS

Discussion in 'iOS and tvOS' started by Dovemobi_iMac3, Mar 23, 2018.

  1. Dovemobi_iMac3

    Dovemobi_iMac3

    Joined:
    Mar 6, 2018
    Posts:
    1
    im having a problem when about to build project to iOS using unity 5.6.3f1, i tried to upgrade to unity 5.6.3p4 and unity 5.6.5p4 but still having the same problem

    Failed running /Applications/Unity/Unity.app/Contents/il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --map-file-parser="/Applications/Unity/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --assembly="/Users/dovemobi.imac3/Documents/!DovemobiClient/King of Racer/Source code KOR2 Final/FullKOR2/Source code King 2/Source code King 2/KOR2(5.6.3)/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" --assembly="/Users/dovemobi.imac3/Documents/!DovemobiClient/King of Racer/Source code KOR2 Final/FullKOR2/Source code King 2/Source code King 2/KOR2(5.6.3)/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --assembly="/Users/dovemobi.imac3/Documents/!DovemobiClient/King of Racer/Source code KOR2 Final/FullKOR2/Source code King 2/Source code King 2/KOR2(5.6.3)/Temp/StagingArea/Data/Managed/Assembly-UnityScript-firstpass.dll" --assembly="/Users/dovemobi.imac3/Documents/!DovemobiClient/King of Racer/Source code KOR2 Final/FullKOR2/Source code King 2/Source code King 2/KOR2(5.6.3)/Temp/StagingArea/Data/Managed/Assembly-UnityScript.dll" --assembly="/Users/dovemobi.imac3/Documents/!DovemobiClient/King of Racer/Source code KOR2 Final/FullKOR2/Source code King 2/Source code King 2/KOR2(5.6.3)/Temp/StagingArea/Data/Managed/UnityEngine.dll" --generatedcppdir="/Users/dovemobi.imac3/Documents/!DovemobiClient/King of Racer/Source code KOR2 Final/FullKOR2/Source code King 2/Source code King 2/KOR2(5.6.3)/Temp/il2cppOutput/il2cppOutput"



    stdout:

    IL2CPP error for property 'System.Collections.Generic.Dictionary`2<System.String,System.String> UnityEngine.WWWForm::headers()' in /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UtilsBindings.gen.cs:565

    Additional information: Sequence contains no elements

    il2cpp.exe didn't catch exception: System.InvalidOperationException: Sequence contains no elements

    at System.Linq.Enumerable.Aggregate[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`3[T1,T2,TResult] func) [0x00039] in <776c86d7978548379a28dce0f5e4ccbb>:0

    at Unity.IL2CPP.NamingComponent.ForPropertyInfo (Mono.Cecil.PropertyDefinition property, Mono.Cecil.TypeReference declaringType) [0x00072] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.NamingComponent.ForPropertyInfo (Mono.Cecil.PropertyDefinition property) [0x00009] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.NamingComponent.ForCustomAttributesCacheGenerator (Mono.Cecil.PropertyDefinition propertyDefinition) [0x00012] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteCustomAttributesCacheGeneratorFor (Mono.Cecil.PropertyDefinition propertyDefinition) [0x0000c] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteCustomAttributesCacheGenerators (Mono.Cecil.TypeDefinition type) [0x000ea] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteAttributes (System.Collections.Generic.IEnumerable`1[T] assemblyDefinitions) [0x0003b] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.SourceWriter.WriteCollectedMetadata (System.Collections.Generic.ICollection`1[T] usedAssemblies, NiceIO.NPath outputDir, NiceIO.NPath dataFolder, Unity.IL2CPP.Metadata.IMetadataCollection metadataCollection, Unity.IL2CPP.AttributeCollection attributeCollection, Unity.IL2CPP.Metadata.VTableBuilder vTableBuilder, Unity.IL2CPP.IMethodCollectorResults methodCollector, Unity.IL2CPP.IInteropDataCollectorResults interopDataCollector) [0x0003a] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AssemblyConverter.Apply () [0x00242] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (NiceIO.NPath[] assemblies, NiceIO.NPath outputDir, NiceIO.NPath dataFolder, NiceIO.NPath symbolsFolder) [0x00011] in <a44bf4d6db9945edb4e325889201384e>:0

    stderr:



    Unhandled Exception:

    System.InvalidOperationException: Sequence contains no elements

    at System.Linq.Enumerable.Aggregate[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`3[T1,T2,TResult] func) [0x00039] in <776c86d7978548379a28dce0f5e4ccbb>:0

    at Unity.IL2CPP.NamingComponent.ForPropertyInfo (Mono.Cecil.PropertyDefinition property, Mono.Cecil.TypeReference declaringType) [0x00072] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.NamingComponent.ForPropertyInfo (Mono.Cecil.PropertyDefinition property) [0x00009] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.NamingComponent.ForCustomAttributesCacheGenerator (Mono.Cecil.PropertyDefinition propertyDefinition) [0x00012] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteCustomAttributesCacheGeneratorFor (Mono.Cecil.PropertyDefinition propertyDefinition) [0x0000c] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteCustomAttributesCacheGenerators (Mono.Cecil.TypeDefinition type) [0x000ea] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteAttributes (System.Collections.Generic.IEnumerable`1[T] assemblyDefinitions) [0x0003b] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.SourceWriter.WriteCollectedMetadata (System.Collections.Generic.ICollection`1[T] usedAssemblies, NiceIO.NPath outputDir, NiceIO.NPath dataFolder, Unity.IL2CPP.Metadata.IMetadataCollection metadataCollection, Unity.IL2CPP.AttributeCollection attributeCollection, Unity.IL2CPP.Metadata.VTableBuilder vTableBuilder, Unity.IL2CPP.IMethodCollectorResults methodCollector, Unity.IL2CPP.IInteropDataCollectorResults interopDataCollector) [0x0003a] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AssemblyConverter.Apply () [0x00242] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (NiceIO.NPath[] assemblies, NiceIO.NPath outputDir, NiceIO.NPath dataFolder, NiceIO.NPath symbolsFolder) [0x00011] in <a44bf4d6db9945edb4e325889201384e>:0

    [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Sequence contains no elements

    at System.Linq.Enumerable.Aggregate[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`3[T1,T2,TResult] func) [0x00039] in <776c86d7978548379a28dce0f5e4ccbb>:0

    at Unity.IL2CPP.NamingComponent.ForPropertyInfo (Mono.Cecil.PropertyDefinition property, Mono.Cecil.TypeReference declaringType) [0x00072] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.NamingComponent.ForPropertyInfo (Mono.Cecil.PropertyDefinition property) [0x00009] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.NamingComponent.ForCustomAttributesCacheGenerator (Mono.Cecil.PropertyDefinition propertyDefinition) [0x00012] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteCustomAttributesCacheGeneratorFor (Mono.Cecil.PropertyDefinition propertyDefinition) [0x0000c] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteCustomAttributesCacheGenerators (Mono.Cecil.TypeDefinition type) [0x000ea] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AttributesSupport.WriteAttributes (System.Collections.Generic.IEnumerable`1[T] assemblyDefinitions) [0x0003b] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.SourceWriter.WriteCollectedMetadata (System.Collections.Generic.ICollection`1[T] usedAssemblies, NiceIO.NPath outputDir, NiceIO.NPath dataFolder, Unity.IL2CPP.Metadata.IMetadataCollection metadataCollection, Unity.IL2CPP.AttributeCollection attributeCollection, Unity.IL2CPP.Metadata.VTableBuilder vTableBuilder, Unity.IL2CPP.IMethodCollectorResults methodCollector, Unity.IL2CPP.IInteropDataCollectorResults interopDataCollector) [0x0003a] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AssemblyConverter.Apply () [0x00242] in <a44bf4d6db9945edb4e325889201384e>:0

    at Unity.IL2CPP.AssemblyConverter.ConvertAssemblies (NiceIO.NPath[] assemblies, NiceIO.NPath outputDir, NiceIO.NPath dataFolder, NiceIO.NPath symbolsFolder) [0x00011] in <a44bf4d6db9945edb4e325889201384e>:0



    0 libsystem_c.dylib 0x00000000548de8eb thread_stack_pcs + 11

    1 Unity 0x0000000002cb6252 backtrace + 18

    2 Unity 0x00000000029e6a68 _Z13GetStacktracei + 104

    3 Unity 0x0000000001caa8cc _Z17DebugStringToFileRK21DebugStringToFileData + 412

    4 Unity 0x0000000001ca86cd _Z17DebugStringToFilePKciS0_i15LogMessageFlagsiiPFvRK11CppLogEntryE + 93

    5 Unity 0x000000000251ff49 _Z35DebugLogHandler_CUSTOM_Internal_Log7LogTypeP10MonoStringP10MonoObject + 505

    6 [Mono JITed code] (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object) + 0xa5 (0x13f80eb90 0x13f80ec64) [0x109b46000 - Unity Child Domain]

    7 [Mono JITed code] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) + 0xc0 (0x13f80ea90 0x13f80eb74) [0x109b46000 - Unity Child Domain]

    8 [Mono JITed code] UnityEngine.Logger:Log (UnityEngine.LogType,object) + 0x195 (0x13f80e400 0x13f80e5b9) [0x109b46000 - Unity Child Domain]

    9 [Mono JITed code] UnityEngine.Debug:LogError (object) + 0x8f (0x13f80e250 0x13f80e303) [0x109b46000 - Unity Child Domain]

    10 [Mono JITed code] UnityEditorInternal.Runner:RunManagedProgram (string,string,string,UnityEditor.Scripting.Compilers.CompilerOutputParserBase,System.Action`1<System.Diagnostics.ProcessStartInfo>) + 0xf23 (0x13fc18fe0 0x13fc1a0ba) [0x109b46000 - Unity Child Domain]

    11 [Mono JITed code] UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments (System.Collections.Generic.List`1<string>,System.Action`1<System.Diagnostics.ProcessStartInfo>,string) + 0x292 (0x13f80c410 0x13f80c6c6) [0x109b46000 - Unity Child Domain]

    12 [Mono JITed code] UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp (System.Collections.Generic.ICollection`1<string>,string,string) + 0xe14 (0x13f80add0 0x13f80bc24) [0x109b46000 - Unity Child Domain]

    13 [Mono JITed code] UnityEditorInternal.IL2CPPBuilder:Run () + 0x483 (0x13f42f740 0x13f42ff27) [0x109b46000 - Unity Child Domain]

    14 [Mono JITed code] UnityEditorInternal.IL2CPPUtils:RunIl2Cpp (string,string,UnityEditorInternal.IIl2CppPlatformProvider,System.Action`1<string>,UnityEditor.RuntimeClassRegistry,bool) + 0x14d (0x13f42eca0 0x13f42ee47) [0x109b46000 - Unity Child Domain]

    15 [Mono JITed code] UnityEditor.iOS.PostProcessiPhonePlayer:CrossCompileManagedDlls (UnityEditor.iOS.PostProcessiPhonePlayer/BuildSettings,UnityEditor.iOS.PostProcessiPhonePlayer/ProjectPaths,UnityEditor.AssemblyReferenceChecker,UnityEditor.RuntimeClassRegistry,UnityEditor.BuildReporting.BuildReport) + 0x1416 (0x13f42c9f0 0x13f42e404) [0x109b46000 - Unity Child Domain]

    16 [Mono JITed code] UnityEditor.iOS.PostProcessiPhonePlayer:postProcess (UnityEditor.iOS.PostProcessiPhonePlayer/BuildSettings,UnityEditor.iOS.PostProcessiPhonePlayer/ProjectPaths,UnityEditor.RuntimeClassRegistry,UnityEditor.BuildReporting.BuildReport) + 0xd57 (0x13f427000 0x13f42a6d4) [0x109b46000 - Unity Child Domain]

    17 [Mono JITed code] UnityEditor.iOS.PostProcessiPhonePlayer:postProcess (UnityEditor.iOS.PostProcessorSettings,UnityEditor.Modules.BuildPostProcessArgs) + 0x730 (0x1485f66e0 0x1485f6e37) [0x109b46000 - Unity Child Domain]

    18 [Mono JITed code] UnityEditor.iOS.iOSBuildPostprocessor:postProcess (UnityEditor.Modules.BuildPostProcessArgs) + 0x146 (0x1485f6560 0x1485f66ca) [0x109b46000 - Unity Child Domain]

    19 [Mono JITed code] UnityEditor.PostprocessBuildPlayer:postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,string,string,string,int,int,string,string,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.BuildReporting.BuildReport) + 0x771 (0x1485f5690 0x1485f5f6c) [0x109b46000 - Unity Child Domain]

    20 [Mono JITed code] (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_object_object_object_int_int_object_object_int_object_object (object,intptr,intptr,intptr) + 0x241 (0x1485f5f80 0x1485f62f4) [0x109b46000 - Unity Child Domain]

    21 libmono.0.dylib 0x00000000078e3fda mono_get_runtime_build_info + 3654

    22 libmono.0.dylib 0x0000000007a0f47e mono_runtime_invoke + 117

    23 Unity 0x000000000209a4dd _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb + 125

    24 Unity 0x0000000000ffb185 _ZL8CallMonoPKcS0_RK18ScriptingArguments + 133

    25 Unity 0x0000000000fcd3ef _ZL23DoBuildPlayer_PostBuildRN4core12basic_stringIcNS_20StringStorageDefaultIcEEEE18BuildPlayerOptions18ScriptingObjectPtr24BuildTargetPlatformGroup19BuildTargetPlatformRN14BuildReporting11BuildReportE + 2735

    26 Unity 0x0000000000fcc5fa _Z13DoBuildPlayerRK16BuildPlayerSetupRSt6vectorIN18EditorSceneManager11SceneBackupE13stl_allocatorIS4_L18MemLabelIdentifier98ELi16EEEN4core12basic_stringIcNSA_20StringStorageDefaultIcEEEES2_ISE_SaISE_EEbRN14BuildReporting11BuildReportEPNSH_20BuiltAssetBundleInfoE + 2394

    27 Unity 0x0000000000fd0f3e _Z11BuildPlayerRK16BuildPlayerSetupRN14BuildReporting11BuildReportE + 2750

    28 Unity 0x0000000002408124 _Z47BuildPipeline_CUSTOM_BuildPlayerInternalNoCheckP9MonoArrayP10MonoStringS2_24BuildTargetPlatformGroup19BuildTargetPlatform18BuildPlayerOptionsh + 692

    29 [Mono JITed code] (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,bool) + 0xd2 (0x11ed7e680 0x11ed7e781) [0x109b46000 - Unity Child Domain]

    30 [Mono JITed code] UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings (bool,UnityEditor.BuildOptions,bool) + 0x17f3 (0x11ed7a4e0 0x11ed7bdf3) [0x109b46000 - Unity Child Domain]

    31 [Mono JITed code] UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings (bool,UnityEditor.BuildOptions) + 0x88 (0x11ed7a400 0x11ed7a4c9) [0x109b46000 - Unity Child Domain]

    32 [Mono JITed code] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.BuildPlayerWindow/BuildPlatform) + 0xc50 (0x11ed49680 0x11ed4a554) [0x109b46000 - Unity Child Domain]

    33 [Mono JITed code] UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings () + 0x3ce4 (0x11ed3d000 0x11ed40e24) [0x109b46000 - Unity Child Domain]

    34 [Mono JITed code] UnityEditor.BuildPlayerWindow:OnGUI () + 0xd83 (0x11d4ee770 0x11d4ef6a4) [0x109b46000 - Unity Child Domain]

    35 [Mono JITed code] (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0xfa (0x119ed06a0 0x119ed08cd) [0x109b46000 - Unity Child Domain]

    36 libmono.0.dylib 0x00000000078e3fda mono_get_runtime_build_info + 3654

    37 libmono.0.dylib 0x0000000007a0f47e mono_runtime_invoke + 117

    38 libmono.0.dylib 0x0000000007a15224 mono_runtime_invoke_array + 946

    39 libmono.0.dylib 0x00000000079d3c33 mono_register_jit_icall + 37377

    40 [Mono JITed code] (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) + 0x103 (0x11c3418b0 0x11c3419e2) [0x109b46000 - Unity Child Domain]

    41 [Mono JITed code] System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) + 0x52c (0x11c340e80 0x11c34151f) [0x109b46000 - Unity Child Domain]

    42 [Mono JITed code] System.Reflection.MethodBase:Invoke (object,object[]) + 0x66 (0x11c340e00 0x11c340e75) [0x109b46000 - Unity Child Domain]

    43 [Mono JITed code] UnityEditor.HostView:Invoke (string,o<message truncated>
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    This looks like a bug in IL2CPP. However, it is difficult to tell exactly what the cause is. Can you try this in a newer version of Unity? We've not shipped many fixes for the 5.6 series recently. If the problem still happens, we would love to have a bug report an correct this.