ArgumentException: The Assembly Assembly-CSharp-Editor-firstpass is referenced by Sirenix.Serialization.AOTGenerated

Issue #415 resolved
Alexandr L created an issue
  1. Got error: ArgumentException: The Assembly Assembly-CSharp-Editor-firstpass 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.

  2. a) Make class TestSciptableObject in the Plugins/Editor/TestSciptableObject.cs b) Create asset from this class and place it to the folder Editor/Resources/TestSciptableObject.asset c) Make ios build with aot enabled

  3. Attached

  4. 2018.2.5f1
  5. 2.0.2.0
  6. no
  7. Windows 7

Comments (8)

  1. Alexandr L reporter

    Temporary fix is to manually disable classes, in the aot preferences, which is used by the editor. Anyway, the editor's classes should not be scanned. Because unity's allow using resources folder for editor purposes, only if it placed in the Editor folder

  2. Tor Esa Vestergaard

    I have a build with a potential fix for this issue. Can any of the affected parties send me a mail at tor@sirenix.net with their Odin invoice ID so I can send them a build for verification that the issue is fixed?

  3. Tor Esa Vestergaard

    To clean up things, I'm marking this as resolved for now, as other affected parties have reported that the bug is fixed. If anybody experiences it again, feel free to re-open the issue.

  4. Alexandr L reporter
    • changed status to open

    Still not working in 2.0.11.0. It still scan Editor/Resources folders

    P.S. I have look in the sources and found place, where check should present. AOTSupportScanner.cs line 288: if (!(assetPath.EndsWith(".asset") || assetPath.EndsWith(".prefab")))) add code which check if assetPath contains "/Editor/" folder in it and skip scanning

    P.S.2 Tested and worked solution -> line(288): if (!(assetPath.EndsWith(".asset") || assetPath.EndsWith(".prefab")) || assetPath.Contains("/Editor/"))

  5. Tor Esa Vestergaard

    Alright, a solution much like what you have there has been added and will be part of the next patch. If you'd like a build with the fix included before the patch is out, you can send me an email at tor@sirenix.net with your Odin invoice ID, and I'll send you such a build.

  6. Log in to comment