Is it possible to debug “Terminated due to memory error”?

前端 未结 11 1614
Happy的楠姐
Happy的楠姐 2020-11-29 05:57

In a certain (consistent) point when my app is running, I consistently get the xcode error message

Terminated due to memory error.

11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 06:15

    I was faced the same issue.("Terminated due to Memory Error") I had tried the above all answers but nothing work for me. Then i debug my code and found a for loop is running for infinity time with allocating memory to a array with nil value every time.its use 300+MB so it give this error

    Thanks.

提交回复
热议问题