Questions tagged [il2cpp]

For issues relating to the IL2CPP Unity scripting back-end.

IL2CPP is a Unity-developed scripting back-end which can be used as an alternative to Mono when building projects for some platforms. Therefore Unity converts IL code from scripts and assemblies into C++ code, before creating a native binary file (.exe, apk, .xap, for example) for a chosen platform.

153 questions
1
vote
1 answer

An error is thrown when trying to build a Unity project with il2cpp

How can i fix this problem? Along with MONO, everything is going well My Unity version is 2021.1.9f1 Exception: Failed running C:\Program Files\Unity\Hub\Editor\2021.1.9f1\Editor\Data\il2cpp\build/deploy/netcoreapp3.1/UnityLinker.exe…
1
vote
0 answers

Difficult to repeat signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8

I am struggling with a problem in Unity3D Android game. It is very hard to repeat Crash. It happens sometimes after 1 hour, sometimes 2 hours of playing every time in different situations and I can't find any reason. I have tried different versions…
seek
  • 1,065
  • 16
  • 33
1
vote
1 answer

Unity WebGL Build fails in versions older than 2018.1.4

I'm trying to build a WebGL Project in Unity, running on Windows 10. I've tried blank projects and I've tried several different versions. I'll be frank I haven't tried all of the versions older than 2018.1.4, but I've tried several 2018, 2019 and…
user2482879
  • 35
  • 1
  • 6
1
vote
1 answer

Cannot install packages using Nuget

I am unable to install any packages to my Unity UWP project ouput in visual stuio using nuget(VS solution is in C++). I get "Could not install package 'xxxxx'. You are trying to install this package into a project that targets 'native,Version=v0.0',…
1
vote
1 answer

Undefined symbols for architecture armv7: "query_call_back(callback_func_type)"

I've a problem to build iOS project after recently upgraded my project from Unity 5.6.4 to 2018.4.19f1. Everything is ok to export, build and run on my device, but if I archive the exported project, then the error occurs: Undefined symbols for…
Sawyer.Zhu
  • 13
  • 3
1
vote
2 answers

Is there a way to prevent assembly stripping in Unity for the IL2CPP compiler in order to use the AWS Gamelift API?

Apparently the AWS Gamelift API uses reflection or some mechanism that causes the Unity compilers to over aggressively strip required assemblies. As a result, you are limited to using the Mono compiler which does allow for turning off stripping.…
1
vote
2 answers

Unity 2018.3, linker crashes during il2cpp compilation on Android (ndk n16b) after upgrading to Catalina

After upgrading to macOS Catalina, my Unity 2018.3 fails to compile for Android using il2cpp. The error seems to happen during the linking process. Here's the…
ProGM
  • 6,949
  • 4
  • 33
  • 52
1
vote
0 answers

How to fix WinRT originate error and holographicspace catastrophic failure exception in Hololens App?

I've recently started getting the following error periodically in my Hololens App, roughly every minute or so, without changing any of my core app functionalities (mostly UI and bugfixing…
1
vote
1 answer

Errors and failure building Android App Bundle in Unity with IL2CPP

I'm trying to build my Unity3D app as a .aab as Android Play Store requires this for new submissions now. Unfortunately i get errors and the build fails each time. I am using Unity editor version 2018.4.11f1 LTS and NDK version r16b. Any help is…
Salbrox
  • 143
  • 1
  • 15
1
vote
0 answers

What is this Unity Error? Addr2Line failure

Suddenly I have this error and I dont know how to solve. I have this error on PC /.......................................................... Addr2Line failure Scripting Backend: il2cpp Build Type: release CPU: arm64-v8a Addr2Line…
UnityChop
  • 11
  • 2
1
vote
0 answers

Build Error using IL2CPP: "System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform."

I've run into some trouble when changing the Scripting Backend from Mono to IL2CPP to support Android x64 since Google says it's necessary. I've tried to search all over the internet for a fix, but couldn't find anything. The error: il2cpp.exe…
Hamza Hathoute
  • 438
  • 3
  • 12
1
vote
2 answers

Unity cannot build GRPC Project for UWP with IL2CPP Backend

Here, or here for a complete version, you can find a sample GRPC "Hello World" project for Unity. Only the first version, that is built for Unity and wrapped in a DLL is working perfectly fine in Unity IDE and on Standalone build. The Raw Grpc.Core…
Mohsenne
  • 356
  • 5
  • 17
1
vote
1 answer

Do multiple link.xml files conflict in Unity?

Files named link.xml are used to prevent certain codes being "bytecode stripped with IL2CPP" (https://docs.unity3d.com/Manual/IL2CPP-BytecodeStripping.html). I have two 3rd party SDKs in my Unity project, both have a link.xml file in their own…
ArtS
  • 1,730
  • 1
  • 20
  • 43
1
vote
0 answers

IL2CPP not generating Box() for function with enum as argument which generated by Mono.Cecil

I was pacthing C# code with Mono.Ceil, to insert code stub in functions. Here's my code For enum type, which is ValueType, I use OpCodes.box to box it as an object. It works if not translated to C++ code with il2cpp (form Unity3D). it generated…
Xiaobin
  • 163
  • 1
  • 1
  • 10
1
vote
1 answer

Unity iOS Build Error UnusedBytecodeStripper2.exe did not run properly

I get this error when I'm building my application for iOS. Scripting backend is set to IL2CPP and architecture is universal. I know that a plugin in my project uses the zxing library, which is causing this error. I don't get any errors when I'm…
Mert Metin
  • 15
  • 4