Reputation: 177
My team is working on a project with Unity 5.1.1. We are using Parse to store data online. Working on the editor is fine. Building a project with Mono as scripting backend has no problem. But building with IL2CPP causes a problem.
When Parse is initialised, there will be an error as below
missingMethodException: Method not found: 'Default constructor not found...ctor() of Parse.PlatformHooks'.
I did research and find out that normally this error would occur if the project has optimisation turned on, but it is off for my project
I have lost 2 days trying to fix this problem but found no solution yet
Upvotes: 1
Views: 763
Reputation: 2329
With the IL2CPP scripting backend, some level of stripping is always enabled, even when the "Stripping Level" option is set to a value of "Disabled". We do this to keep the binary size reasonable.
We might be changing this behavior soon, and allow stripping to really be disabled, but in the meantime, you can probably work around the issue.
You can use a link.xml file for require the Unity stripping code to keep certain types. See the documentation here:
http://docs.unity3d.com/Manual/iphone-playerSizeOptimization.html
Based on the error message though, I'm guessing that you want something like this:
<linker>
<assembly fullname="Parse">
<type fullname="Parse.PlatformHooks" preserve="all"/>
</assembly>
</linker>
Upvotes: 2