Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

iOS IL2CPP crash in Release builds

$
0
0
I've been hunting down a crash that happens very consistently that I can't seem to figure out. I instantiate my prefab, wait a frame to initialize it, then add MonoBehaviour's during the initialization process (so it's happening in the Update loop). When I go to add this behavior it throws a null reference exception, even though I do a null check directly before calling the add function (and it shouldn't be null anyway). It works on every other platform, and only crashes in builds when...

iOS IL2CPP crash in Release builds

Viewing all articles
Browse latest Browse all 10823