I have another unusual problem. To my dismay a customer now wants an iOS app of the app, which was developed only for PC.
The whole app is strongly based on scriptable objects. These are assigned as object variables on a disabled UI element.
When I want to generate AOT I get a lot of errors which are all due to my scriptable object.
For example, my scriptable object is called Hotspot:
Error message: Assets/Plugins/Ludiq/Ludiq.Core/Generated/AotStubs.cs(4108,42): error CS0841: A local variable `target' cannot be used before it is declared
public static void Hotspot_Properties()
global::Hotspot target = default(global::Hotspot);
global::UnityEngine.Sprite accessor = target.Properties;
target.Properties = default(global::UnityEngine.Sprite);
global::Ludiq.InstanceFieldAccessor optimized = new global::Ludiq.InstanceFieldAccessor(default(global::System.Reflection.FieldInfo));
optimized.SetValue(default(global::Hotspot), default(global::UnityEngine.Sprite)); -> in this line is the first Error
The funny thing is when I create a new project in the same Unity version with the same Bolt version my Scriptable object is integrated and set in the Bolt setup types it works without problems.
Does someone had a simular problem?
I tried reimporting bolt, update units, unity restarts, deleting bolt restarting unity fresh bolt install, but nothing worked.
Customer support service by UserEcho