I have a question regarding managed dll been obfuscated, then when I try to build android IL2CPP it throws me error, I believe It is because managed dll code is not compatible to the IL2CPP. I was wondering if IL2CPP can exclude certain managed dll?
If you select the DLL in your Unity project window, in the inspector should be a list of target platforms that it will be included on. Using that you should be able to exclude it from the ones causing problems.
That means I would have to remove the dll and add in source code for rest platforms, what I meant was make il2cpp not converting certain managed dll.
If a managed DLL is in the project, then IL2CPP must convert it, because there is no way to interoperate between code that is using the Mono scripting backend and code that is using the IL2CPP scripting backend. So if you need to execute this managed code in your project, IL2CPP will need to convert it.
I wonder though, what is the specific problem. IL2CPP should be able to convert most managed code. Can you provide details about the specific error message?
The managed code was fine, until I obfuscate it. It has something to do with that, I was using .net reactor. which brings up some mono ceil error.
Don’t obfuscate it then…
IL2CPP is going to convert the IL in the managed dll to C++ (IL 2 CPP). Then that C++ is compiled to machine code for whatever platform you’re targeting. This resulting data isn’t so easily decompiled like a managed dll is. It’s why one doesn’t usually obfuscate C++ projects…
If you’re deploying any mono project builds without the IL2CPP, reserve the obfuscated dll for those.
Yeah, totally understand that. I want to prevent certain people in my team from seen my dll. Maybe obfuscation is not the correct thing to do.
Why are you trying to keep certain people on your team from seeing the dll?
If you have people on your team who might steal your code… you might want to think about not having them on your team. What’s keeping them from stealing anything else?
If with obfuscation, the managed assembly should be converted correctly. Can you submit a bug report and include the project with the obfuscated assembly? We would like to correct this.