Is there a way to simulate a crash in an iOS build?
Maybe a null reference?
public void Crash()
{
string name = typeof(object).BaseType.Name;
}
Or a wrong index?
public void Crash()
{
int[] table = new int[0];
table[0] = 1;
}
Usually, the system exception makes iOS crash.
Thanks. Funny as although the wrong index causes an error in the Editor, it does not cause my game to crash on the device (iPad). I didn’t try the null exception yet.