I want to see the unity crash reports on iOS (http://docs.unity3d.com/ScriptReference/CrashReport.html)
I'm trying to force the game to crash on a device with the following script, but the game doesn't crash so no crash report is saved.
The script works in the editor (the errors are logged and the StackOverflow method crashes unity), but on the device it doesnt work.
I have tried with the device connected and discconeted to the computer.
The only method that actually crash the game and creates a crash report in the device is StartExceptionCorutine, but I don't know why all the others do nothing.
public void DivideByZero ()
{
float zero = 0;
float nan = 1 / zero;
Debug.Log (nan);
}
public void OutOfRange ()
{
string[] array = new string[3];
array[4] = "Out of Range";
}
public void NullReference ()
{
object obj = null;
obj.GetHashCode ();
}
public void StartNullReferenceCoroutine ()
{
StartCoroutine (NullReferenceCorutine ());
}
private IEnumerator NullReferenceCorutine ()
{
object obj = null;
obj.GetHashCode ();
yield break;
}
public void ThrowException ()
{
throw new Exception ();
}
public void StartExceptionCorutine ()
{
StartCoroutine (ExceptionCorutine ());
}
private IEnumerator ExceptionCorutine ()
{
throw new Exception ();
}
public void StackOverflow ()
{
StackOverflow ();
}
public void OutOfMemory ()
{
long[,,] array = new long[int.MaxValue, int.MaxValue, int.MaxValue];
Debug.Log (array);
}
public void InfiniteLoop ()
{
while (true);
}
These are my project settings (attached), is there anything do I have to change in them or in xcode?
↧