Every time I try and build using IL2CPP I get the error below. Building with Mono is fine, but it’s a DOTS project. I have tried DOTS 1.2.pre-4, 1.2.exp-3, 1.0.16, and a few editor version to see if it made a difference (2022.3.15-13-and 10) but had the same result in all tests.
// This keeps going on after --allowed-assembly for dozens of assembly paths
Building Library/Bee/artifacts/LinuxPlayerBuildProgram/ManagedStripped failed with output:
/home/mosthated/Unity/Hub/Editor/2022.3.10f1/Editor/Data/il2cpp/build/deploy/UnityLinker --allowed-assembly=/home/mosthated/Unity/Hub/Editor/2022.3.10f1/Editor/Data/PlaybackEngines/LinuxStandaloneSupport/Variations/il2cpp/Managed/UnityEngine.AIModule.dll ...
Fatal error in Unity CIL Linker
System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 9, position 18.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
....
I tried adjusting the managed stripping level from minimal to low, just to see as well, but no change. I also tried setting C++ Compiler Config, and adjusting the IL2CPP code gen setting, but so far, none of them seem to make any difference.
I am really not sure what else to try?
Current setup outside of testing the other versions:
Ubuntu 22.04
Unity 2022.3.15
DOTS 1.2.pre-4
Edit. At least some good news, I tried a different project with the same Unity packages installed and it built, so I guess it is just something in my current project. That makes me feel somewhat better. Just gotta keep digging.