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

前端 未结 11 1629
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:24

    Edit the scheme, under Diagnostics you'll find several options to guard allocations. Refer to the documentation for details.

    Question is: does it really say "terminated due to memory error" and not "pressure"? Check in instruments if your app is running low on memory, if the app does seem to run low on memory then that's what you should focus on regardless what the exact message is.

提交回复
热议问题