Assembly::GetReferencedAssemblies() gives Unsupported internal call during runtime for iOS when using IL2CPP


I have just tried to build my game for iOS after switching to IL2CPP as the scripting backend and discovered the following error preventing my game from functioning:

NotSupportedException: /Users/builduser/buildslave/unity/build/Tools/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System.Reflection/Assembly.cpp(351) : Unsupported internal call for IL2CPP:Assembly::GetReferencedAssemblies - “This icall is not supported by il2cpp.”

It seems to come from my Assembly.GetReferencedAssemblies call. Is there a way around this?

I am using Unity 5.2.1 f1 if that helps.


Please try the latest version of Unity. This function is implemented now, although I can’t say exactly which version it is implemented in.