-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with release build using il2cpp #33
Comments
Thanks for your report! I will try to check this problem as soon as possible. For now it looks like incompatibility between Unity's il2cpp and the library. UPD. Could you please add information about which version of Unity and TinyECS have you used? |
Sure!
|
Hmm, it seems that IL2CPP does not like generic methods with structs (look the last commet): https://forum.unity.com/threads/any-workaround-for-il2cpp-aot-generic-virtual-methods-and-explicit-interfaces.876664/ I did a mass find/replace on components and component methods replacing structs to classes, and then the build worked. Still superficial and not the best solution, I think, but at least it is some info =P |
Thanks for the link, will read this later. Also I've tried to make a WebGL build with latest version of the library and no errors have happened. Did you use dynamic libraries or just copy sources into your project? Remember that dll with editor's stuffs should be placed in Editor/ directory. About the solution below: it could be used as temporary hack. For now I suppose to introduce conditional compilation to disable generic methods and replace them with simple arguments. |
I used the Unity 2D mobile template to initially setup the project, which
might change some settings (I noticed it added an editor plugin, so might
also have changed something more).
I downloaded and copied the sources to learn with the codebase (unity
complained about the AssemblyInfo.cs file, so I deleted it).
Also, I deleted the TinyECS Editor sources before building, because unity
was also complaining about it 😅
Hmm, I'll try to make a minimum repo with the error. Talking to you here I
noticed I did some tweaks along the way not direclty related to the IL2PP
thing.
…On Tue, Jun 15, 2021, 10:48 Ildar Kasimov ***@***.***> wrote:
Thanks for the link, will read this later.
Also I've tried to make a WebGL build with latest version of the library
and no errors have happened. Did you use dynamic libraries or just copy
sources into your project? Remember that dll with editor's stuffs should be
placed in *Editor/* directory.
About the solution below: it could be used as temporary hack. For now I
suppose to introduce conditional compilation to disable generic methods and
replace them with simple arguments.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADU2XCQ6GEEWOEXGQW7I4LLTS5K2PANCNFSM46WGLC7Q>
.
|
Bug report
I'm not familiar with this kind of error in Unity... Is it something that can be "worked around" when using the library?
I could run it when building for Android using Mono, but it might be a limitation for people who needs to generate 64 bits APK or HTML5 versions.
Besides that, thanks for the lib! I'm using it to study ECS so not worried much about it.. I'll try to investigate also for learning porpuses and update here later.
Environment
Versions
Unity 2019.4.15f1
TinyECS v0.4.15
Platform
HTML5, Android
Compiler
IL2CPP
Hardware
Windows PC
Steps to reproduce the issue
What's the expected result?
What's the actual result?
As soon as the app loads, I get this error:
Additional details / screenshot
The text was updated successfully, but these errors were encountered: