-
Notifications
You must be signed in to change notification settings - Fork 131
Help: Error when building Unity project #65
Comments
Hi @gavinb80! Thanks for reporting this! I reformatted your description a little. I conclude from your error message that you're using Unity 2019.4.6.f1, but I cannot make any other informative guesses on what could be the cause here, sorry to say. I will try reproduce the issue and report back on my findings. |
Two suggestions I have looking in a very cursory manner at the error @gavinb80:
cc: @jilleJr |
If you're using the UPM package, or even importing the package as-is with it's entire content, then it should already be configured to automatically select the AOT compatible build on iOS. Good to double-check though! |
If you have 2019.4.* Unity version, don`t use "jillejr.newtonsoft.json-for-unity": "12.0.301" , use "jillejr.newtonsoft.json-for-unity": "12.0.201" instead inside manifest.xml and it will build it sucessfully. |
I got this error when build webgl on 12.0.301 version. On older I still build webgl success. |
@trongcongdn2 That error seems related to what's mentioned in #54. A fix for that can be found in #72 and is coming in v12.0.302 As for your sample @gavinb80, I was unable to reproduce it on both Low and Medium stripping level as it built successfully. On High stripping level issue #54 took precedence. That error may be the one you refered to here, but I'm unsure. I will be including the following link.xml config just to make sure: <linker>
<assembly fullname="Newtonsoft.Json">
<type fullname="Newtonsoft.Json.Converters.IsoDateTimeConverter" preserve="all"/>
</assembly>
</linker> I will close this issue via PR #72. Please don't refrain from reopening this or creating a new issue if any similar errors ever appear. |
Hi,
I've added the latest version of Json.net package (12.0.3) to my Unity project, but when I build the project to test on my iOS device I get the following error:
My class:
Then from one of my game C# scripts I call:
The TestGame class was generated via https://app.quicktype.io and it seems to work ok in a small C# Console app via the standard Newtonsoft.Json library from Nuget.
Any help appreciated
The text was updated successfully, but these errors were encountered: