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
2
votes
2 answers

How to fix "Failed to load IL2CPP" error in unity?

I am using Unity 2019.1.12f1, built a project for Android using IL2CPP.I chose ARMv7 and ARM64 in target architectures setting.I published it in the Play Store.But some devices are crashing.Error message is "Failed to load IL2CPP".
sabenburra
  • 93
  • 1
  • 3
  • 6
2
votes
0 answers

Unity il2cpp code stripping change my app behavior

In Unity when I build using mono and code stripping disabled, my app works fine. But I can't get ARM64 with mono so I have to use il2cpp. With il2cpp code stripping is always enabled and it changes my game behaviour. It probably deletes important…
2
votes
1 answer

Unity and Hololens: Reading non-text file exception

[Edited] First I have to apologize, I've just noticed the bit of code I pasted as our code for reading png files is not working in .net backend either (the txt reading does work for both, .net and il2cpp, as stated). The call stack cames from a…
Eldir
  • 131
  • 8
2
votes
2 answers

Unity Hololens debugging in Visual Studio with IL2CPP?

I am running Unity 2018.2 and when building my Hololens project with IL2CPP, in Visual Studio 2017 I can no longer see any output when Debug.Log is called from my project's C# scripts. I believe my question is related to this other question What is…
jaraujo
  • 372
  • 2
  • 10
2
votes
2 answers

How to prevent so file hacking in so file

In my app(unity5, il2cpp build), There is a function like "GetScore()" Unfortunately, i found the hacked version of my app in the black market. that hacked version's "GetScore()" function always returns 100. The original return value has to be under…
Cloud Lee
  • 23
  • 1
  • 4
2
votes
1 answer

unity "NullCheck" hold on to memory

"Null-Check" hold on to lots of memory. why? what happened? Anybody encounter the problem? Null-Check hold on to memory
wei zhong
  • 23
  • 2
2
votes
0 answers

Unity iOS 64 bit build crash at com.apple.IOAccelerator.BlockFences, Exception Subtype: KERN_INVALID_ADDRESS

I am using Unity 4.6.6f2 and made il2cpp build to support 64 bit requirement from apple. I am having strange random crash and in device crash logs, I see these crash reports. It is happening on multiple devices and all of them have this in…
Imran
  • 1,070
  • 16
  • 31
1
vote
0 answers

Unity android Build IL2CPP Failed

I am trying to build a project in unity Android. But it fails. I m using google firebase GoogleAuth, Mapbox and Firestore in the project. Mapbox is and Firestore working fine in the project work. I was not able to test firebase GoogleAuth because i…
1
vote
0 answers

Unity Android Build Issue - IL2CPP error (No further information)

I've been trying to make a build for Android with Unity, and I keep getting this error. I've reinstalled the Unity version and a few SDKs, but I can't figure anything out unfortunately. Any help would be appreciated! Error: IL2CPP error (no further…
1
vote
1 answer

Working with Files on Hololens 2 (UWP to .NET)

I am developing an application for the HoloLens 2 with Unity. I am still very confused how to connect the UWP environment and the .NET API. I want to read text files (.txt) as well as binary files (.raw). When working on the Hololens (UWP…
Alex
  • 151
  • 10
1
vote
0 answers

If IL2CPP on unity is compiled, how come people can mod games?

I've been developing a game in unity(called Humanity Clicker, if anyone is interested) so I been doing a lot of research on how the engine works and etc. It just so happens that there are projects, such as MelonLoader, which are capable of modding…
peq42
  • 346
  • 4
  • 18
1
vote
2 answers

how to keep internal type while using il2cpp in Unity3d2020.3.22f

My code: public static IConfigurationBuilder AddModel ( this IConfigurationBuilder builder, T model, JsonSerializerOptions options = null) { var dic = new Dictionary { {typeof(T).Name, model} }; …
HonestBoy
  • 31
  • 7
1
vote
1 answer

Unable to retrieve the runtime generic context for 'System.Collections.Generic.List

I've created a class that inherits from List to be used on my Unity-firebase project porpouses. using System.Collections.Generic; public class FirestoreList : List, IConvertToPlainData> …
Lotan
  • 4,078
  • 1
  • 12
  • 30
1
vote
1 answer

Dictionary throwing exception when serializing with protobuf-net

I am trying to make protobuf-net work with Unity. From the lot of research I've done the last days, it seems to be complicated to get both to work fine together. I have right now a problem I can't get around, when building using IL2CPP. The…
Infenix
  • 113
  • 8
1
vote
1 answer

How does BL instruction jump to invalid instruction still manage to work corretly

I'm practice to reverse engineering a il2cpp unity project Things I done: get the apk using Apktool to extract files open libunity.so with Ghidra ( or IDA works too ) And I found a wired block of instructions like : 004ac818 f4 0f 1e f8 …
ratsafalig
  • 442
  • 5
  • 21
1 2
3
10 11