The Assembly Unity.CollabProxy.Editor is referenced by Sirenix.Serialization.AOTGenerated.

Issue #778 invalid
Fatih Kıran created an issue

Hello,

I get “ArgumentException: The Assembly Unity.CollabProxy.Editor is referenced by Sirenix.Serialization.AOTGenerated ('Assets/Plugins/Sirenix/Assemblies/AOT/Sirenix.Serialization.AOTGenerated.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at <e09fc44b2b464346872ad04477f51ab1>:0)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at <e09fc44b2b464346872ad04477f51ab1>:0)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)” error if i try to build. I checked if i serialized something references “Unity.CollabProxy.Editor” but i event couldn’t find namespace. Also Collab is not enabled in the project. I don’t know how to reproduce the issue.

  • I do not use Editor Only Mode
  • Version 3.0.5.0(Also tried 3.0.4.0)
  • Windows 10-64 bit
  • Unity 2020.3.6f1
  • Repacing prefabs in scene fixes it but still strange

Comments (1)

  1. Tor Esa Vestergaard

    I believe I replied to this issue on Discord as well - though that may have been someone else than you with the same error message. This is not an Odin error, and not an error we can fix on our end.

    Somewhere you have Odin-serialized data going into the build which contains types that are from the Unity.CollabProxy.Editor assembly. You have to go through the generated list of types to create AOT support for and disable any types from that assembly. You have to do this yourself because there is no way Odin can determine whether any given type or assembly will be included in the build or not.

    Alternatively, we have an experimental variant of the serializer that does not need AOT support to be generated at all. If you would like to try out this serializer variant, please contact me on Discord and I will send you a build.

  2. Log in to comment