Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Standalone IL2CPP build fails #102

Closed
umutkutlu opened this issue Jul 4, 2023 · 2 comments · Fixed by #105
Closed

Error: Standalone IL2CPP build fails #102

umutkutlu opened this issue Jul 4, 2023 · 2 comments · Fixed by #105

Comments

@umutkutlu
Copy link
Contributor

Definition

Builds fail with the following error:
Fatal error in Unity CIL Linker
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null'

OS: Windows 10
Unity version: 2021.3.23f1
SDK version: 1.5.1
Target platform: Windows Standalone

Steps To Reproduce

  1. Create a new unity project
  2. Import the sdk v1.5.1 from package manager
  3. Install the sample
  4. Add Demo Example scene to Build Settings
  5. Change the Scripting Backend to IL2CPP by navigating to Edit/Project Settings/Player/Other Settings
  6. Wait for the project to recompile and attempt to Build it

Possible Solution

Newtonsoft.Json.dll v13.0.0 does not support IL2CPP, changing current one to jilleJr's Newtonsoft.Json v13.0.1 should fix the issue.

@umutkutlu
Copy link
Contributor Author

I just disabled TezosUnitySDK.Newtonsoft.Json.dll and Newtonsoft.Json.dll, waiting for your confirmation to remove @k-karuna @m-kus . Added jilleJr's Newtonsoft.Json v13.0.1, fixes the issue.

@k-karuna
Copy link
Member

k-karuna commented Jul 6, 2023

I checked editor, win standalone IL2CPP and WebGL, everything works fine on both Unity 2021.3.21 and 2022.3.4

k-karuna added a commit that referenced this issue Jul 6, 2023
* jilleJr's Newtonsoft.Json v13.0.1 added, resolves #102

* Update CHANGELOG.md #102

* Removed TezosUnitySDK.Newtonsoft.Json.dll and Newtonsoft.Json.dll;

---------

Co-authored-by: umutkutlu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants