[IL2CPP] [UWP] Build Suceeded. Fatal Error on Play. Failed to load Game Assembly

Hello everyone,

like the Threadtitle says the UWP Build Suceeded, but if i want to Play i get an Fatal Error. Failed to load Game Assembly. I tried on Windows 10 1809 and compiled the Game with VS 2017. Compiling works fine.

In the UnityPlayer.log i got this Error:
il2cpp: function il2cpp_unity_install_unitytls_interface not found
Failed to load Game Assembly!

4227514--375964--2019-02-18 10_24_19-Window.png

I have no idea how to fix this error . Anybody knows how to fix?

Here is the Content of the UnityPlayer.log

Module information:
Built with Compiler Ver '190024218'
Built from '2018.2/staging' branch
Version is '2018.2.16f1 (39a4ac3d51f6)'
Release build
Application type 'D3D'
OS 'Windows 10 (10.0.17763) 64bit'
Could not load symbol il2cpp_class_get_type_token : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_class_get_type_token not found
Could not load symbol il2cpp_class_get_rank : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_class_get_rank not found
Could not load symbol il2cpp_method_get_from_reflection : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_method_get_from_reflection not found
Could not load symbol il2cpp_type_is_byref : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_type_is_byref not found
Could not load symbol il2cpp_type_get_attrs : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_type_get_attrs not found
Could not load symbol il2cpp_type_equals : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_type_equals not found
Could not load symbol il2cpp_type_get_assembly_qualified_name : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_type_get_assembly_qualified_name not found
Could not load symbol il2cpp_debugger_set_agent_options : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_debugger_set_agent_options not found
Could not load symbol il2cpp_is_debugger_attached : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_is_debugger_attached not found
Could not load symbol il2cpp_unity_install_unitytls_interface : Operation has failed with error 0x7f: Die angegebene Prozedur wurde nicht gefunden.


(Filename: C:\buildslave\unity\build\Runtime/Modules/LoadDylib.cpp Line: 208)

il2cpp: function il2cpp_unity_install_unitytls_interface not found
Failed to load Game Assembly!

That looks like mismatched IL2CPP and Unity version. Did you try building your project to an empty folder?

Thank you very much!
That points me in the right direction. I builded the vs project on a machine with unity 2017 installed. Then i copied the project and wanted to build the uwp package on another machine, where unity 2018 was installed. That was the fault.

The solution was to downgrade to unity 2017 again, then everything works as expected.

For the future reference, if you want to copy generated VS project to another machine safely, check “Copy References” checkbox. Then the build won’t depend on installed Unity.