My project uses .FromJson<> to convert a json string into a serializable class structure. Everything works when I build on Windows, but when I create a Mac build, this function throws an error. I do not know what the error is since I don’t have the Unity editor on Mac so I only see it fail in the build itself, but idk why it would work on Windows and not on Mac.
Here’s the line I’ve determined is causing the error.
var earnings = $"url".GetJsonFromUrl().FromJson<Earnings>();