Open diegoeche opened 4 years ago
Hi @diegoeche! Thanks for reporting this, this seems like an interesting one :)
I've yet had time to test the package for Xbox as I'm not keen yet to obtaining a dev license just for that. Maybe soon:tm:
The package comes with multiple builds targetting different .NET versions. For the editor the Newtonsoft.Json.dll depends on .NET Framework 4.6, but in most of the other builds it targets .NET Standard 2.0, something that according to the docs (https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support) requires at least UWP v10.0.16299.
Though that does not correspond to the error message your platform tester receives. "Access to the path X is denied." Is this a permission issue? Really tricky issue to find info about online 😅
Here's everything related I could find:
https://issuetracker.unity3d.com/issues/reference-rewriter-fails-in-2017-dot-2-with-analytics-enabled
There's a similar issue reported here but they do not discuss the cause nor the solution, but instead only says it's "fixed in 2017.2"...
https://bitbucket.org/sirenix/odin-inspector/issues/308/linking-fails-for-unity-xbox-one-builds
(funny it's about Odin, another big JSON serializer library)
Build error, similar but different error message (System.InvalidOperationException: Operation is not valid due to the current state of the object.
). They resolved it by removing the .mdb
and .pdb
files. It's a long shot, but is this something you could try? Moving the package from Library/PackageCache into the Packages folder and then removing the said files together with their respective .meta
files.
What I can do from my end is recompile the package to target different .NET runtimes in the hopes that it will be compatible with your Xbox build and then deploy that in a new version with a "Newtonsoft.Json Xbox One"-specific .dll. But I will need more information before I can try assuming such a solution.
What I would like is more information on the issue, things like:
This is a "I don't know" but I would really want to help you resolve this.
Thanks so much for the quick reply!
I'd need to get some of the info from the devs testing the code.
Here's some of the info you asked:
Just a little update from my part
I'll get access to the XBox-one target this week. I'll try to make sure there isn't anything project specific that is causing the error. Will create a small project to see if I can isolate the issue.
Hi @diegoeche. Just wondering if you were able to get this to work? I've tested a very simple project with Unity Remote Config which uses Newtonsoft as a dependency successfully for xbox-one.
Hello @tsira. Sorry for the late reply.
I never got access to the XBox sdk. Since I'm a contractor, the company is having issues cutting through all the red-tape.
Because we were on a tight schedule, I replaced https://github.com/RicoSuter/NJsonSchema and Newtonsoft.Json for Unity's json serialization and my own DTO generator.
I'm sorry I can't be more specific. I'm a bit desperate :)
I'm developing a library for a 3rd party. I love how convenient this is, and so far, no issues whatsoever.
I sent my library to be tested in a variety of platforms. I got a bug-report back that adding this library is causing the build to fail. This happens without my code, but just by adding this library. The stack-trace is rather long, but it's complaining with an error message:
I checked the library's manifest, and it seems netstandard.dll isn't something it depends on. Have you heard about any error during build that is like this?
I'm aware some platforms provide limited access to
netstandard.dll
like UWP. In my case I'm able to use this library in UWP without any issue.Any help, even an "I don't know" would be greatly appreciated.
EDIT: Title and adding more info.
The error is super long. But maybe this bit is also important:
UnityException: Failed to run reference rewriter with command