-
Notifications
You must be signed in to change notification settings - Fork 131
Building on standalone causes plugin collision #3
Comments
This is known issue at Unity. Found in 2018.3.0a5, 2018.3.6f1, 2019.1.0a1, 2019.2.0a1 https://issuetracker.unity3d.com/product/unity/issues/guid/1143118 |
Would it be possible to have source instead of the dlls in the package and use the defines inside of the code instead? |
It is fully possible, and I've been using this method during dev of this fork, but there are some annoying problems in that implementation when it comes to publishing. First minor thing is it would require using assembly definitions, which does not support non-asmdef code (as you must explicitly reference them), but secondly it requires you to either add all the following defines as well to your project settings...
...or go through entire Newtonsoft.Json namespace and replace all above debug symbols with This is however fixed in the patch @@ manifest.json @@
{
"scopedRegistries": [
{
"name": "Packages from jillejr",
"url": "https://registry.npmjs.org/",
"scopes": [
"jillejr"
]
}
],
"dependencies": {
"com.unity.package-manager-ui": "2.1.2",
- "jillejr.newtonsoft.json-for-unity": "12.0.1",
+ "jillejr.newtonsoft.json-for-unity": "12.0.1-patch-001",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0", |
Hello! I still get this exact error with "12.0.1-patch-001". I was building for Windows, Linux, Mac then upgraded to Unity 2019.2.4f1 and after doing some more builds I got this error. Not sure what exactly triggered it. |
Interesting! What version were you on prior to 2019.2.4f1? |
It was 2019.1.14f1. Maybe also worth noting that I was using our CI/CD pipeline and running Unity through the CLI - could be something wrong on my end! |
@horeatrinca Say what container? Windows or Linux? What distro? What image? (gableroux perhaps?) |
Our build machine is on the latest Windows 10, not running in any VM. Just an honest install on a PC :) |
We have the same Problem too, Unity3D Platform Windows (10) 64 Bit, Scripting Backend is IL2CPP |
@dFlynnSo It's due odd. The I'll give this a full shot this week. |
I was having the same issues 2018.3.7 and 12.0.1 |
Sorry @horeatrinca and @dFlynnSo but I am unable to reproduce this issue with Things you might try as sanity checks is closing Unity, deleting the /Library folder, and opening again (to force a refresh of DLL's). Could any of you possibly produce a minimal reproduction project (sent via ex: email)? |
Thanks for looking into it @jilleJr. When I have more time I will try to reproduce it and give you more specific details! |
That solved it for me. Highly appreciate your work and effort! I was devestaed when it didn't work after inserting your package in my project for my iOS build. But after deleting Library folder it finally build! :) |
This seems to be fully resolved. Closing due to inactivity. |
Expected behavior
Building with and without IL2CPP on Windows will flip between using "Newtonsoft AOT" and "Newtonsoft Standalone" DLLs.
The define constraints should filter according to the constant
ENABLE_IL2CPP
.Actual behavior
They collide as if both are supposed to be loaded. Build error in Unity:
The define constraints seems to not work at all.
Steps to reproduce
Originally posted by @maskedmouse in JamesNK#2044 (comment)
The text was updated successfully, but these errors were encountered: