I should note that this is an augmented reality project. Application works perfect with Mono2x. Changed to IL2CPP because app store requires 64-bit. Splash screen still plays, but now when the camera tries to start, the app crashes.
I am instantiating objects which represent the player's score. This works perfectly with Mono2X. I also have a very simple collision which worked fine before too.
I get very vague errors like this:
ArgumentException: The thing you want to instantiate is null.
at UnityEngine.AssetBundle.LoadAsset_Internal (System.String name,
System.Type type) [0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at ScoreHandler.OnCollisionEnter (UnityEngine.Collision col) [0x00000]
in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
Unhandled Exception: System.ArgumentException: The thing you want to
instantiate is null.
at UnityEngine.AssetBundle.LoadAsset_Internal (System.String name,
System.Type type) [0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at ScoreHandler.OnCollisionEnter (UnityEngine.Collision col) [0x00000]
in <filename unknown>:0
I also get an error on loading the ARMarker. The marker successfully loads anyways though.
ARController (native): [error]Loading single AR marker from buffer,
width 55.000000.
ARController (native): [error]ARController::addMarker(): called
ARController (native): ARController::addMarker(): Added marker (UID=0),
total markers loaded: 1, exiting, returning true
ARController: Starting AR.
I'm more concerned with the ArgumentException which is causing the program to crash.