I’ve been getting the error below when building my project for IL2CPP. I’ve been trying to nail down the exact problem (problem script?) but failing… I opened a new project, copied in all my assets one by one (and then project settings) until the project was identical, no problem… Switched back to my project, problem gone.
I can’t really submit a minimum project until I have a reliable project…
Now… (and hour or two later) it’s come back again. I’ve done a few git branch changes in the mean time, but that’s really all I can think of which might be a problem.
This wasn’t working in 5.1.2f1, so tried 5.1.3p1, no difference.
I have a script with some marshalling, (which builds fine, runs on android/osx and ios… WHEN it builds)
I have all stripping settings off (Maybe these don’t apply to IL2CPP)
Are there any clues here that might help me hone in on what is broken?
Failed running /Applications/Unity 5.1.3p1/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out “/Volumes/Code/RwdMovieTexture/Unity/Temp/StagingArea/Data/Managed” -l none -c link -x “/Applications/Unity 5.1.3p1/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/native_link.xml” -f “/Applications/Unity 5.1.3p1/Unity.app/Contents/Frameworks/il2cpp/LinkerDescriptors” -x “/Volumes/Code/RwdMovieTexture/Unity/Temp/StagingArea/Data/Managed/…/platform_native_link.xml” -x “/Volumes/Code/RwdMovieTexture/Unity/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml” -d “/Volumes/Code/RwdMovieTexture/Unity/Temp/StagingArea/Data/Managed” -a “/Volumes/Code/RwdMovieTexture/Unity/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll” -a “/Volumes/Code/RwdMovieTexture/Unity/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll”
stdout:
stderr:
Unhandled Exception:
Nested exception detected.
Original Exception: at (wrapper managed-to-native) object.__icall_wrapper_mono_object_new_fast (intptr) <0x00051>
at UnusedBytecodeStripper2.Program.Main (string[ ]) <0x00013>
Nested exception:at (wrapper managed-to-native) System.MonoType.getFullName (System.MonoType,bool,bool) <0x00060>
at System.MonoType.ToString () <0x00017>
at System.Exception.get_ClassName () <0x0001e>
at System.Exception.ToString () <0x00013>
[ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
Original Exception: at (wrapper managed-to-native) object.__icall_wrapper_mono_object_new_fast (intptr) <0x00051>
at UnusedBytecodeStripper2.Program.Main (string[ ]) <0x00013>
Nested exception:at (wrapper managed-to-native) System.MonoType.getFullName (System.MonoType,bool,bool) <0x00060>
at System.MonoType.ToString () <0x00017>
at System.Exception.get_ClassName () <0x0001e>
at System.Exception.ToString () <0x00013>
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:192) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185)
UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136) UnityEditorInternal.AssemblyStripper:Strip(String[ ], String[ ], String, String, String&, String&, String, String, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:121)
UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String[ ], String[ ], String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:426)
UnityEditorInternal.IL2CPPBuilder:StripAssemblies(IEnumerable1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:414) UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:291) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()