malloc: *** error: incorrect checksum for freed object - object was probably modified after being freed

前端 未结 4 1144
悲&欢浪女
悲&欢浪女 2020-11-30 05:19

I have a big problem with my iOS App: it crashes sometimes without detailed debug error. The stack trace is empty. These are the only two lines in the stack trace:

4条回答
  •  悲&欢浪女
    2020-11-30 06:16

    To find the source of the problem, in Xcode go to Product > Scheme > Edit Scheme, and under Diagnostics tab enable all the Malloc settings and Guard Malloc.

    With that, run your application again, and Xcode will stop at the line causing the problem.

    Scheme definition

提交回复
热议问题