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

前端 未结 11 1609
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:01

    I had similar issue in Xcode 11.3 wherein camera was getting calling every-time we press on try again button. If these is done multiple times then crash happens.

    This was fixed when we disabled Zombie objects. Below are steps:

    1. Tap on project name present in top left. This will show list of targets present in project.
    2. Tap on Edit scheme

    1. Select Run option -> Diagnostics -> Uncheck Zombie Objects.

    Now, run your project. It should work fine.

提交回复
热议问题