LLDB equivalent to GDB's “info malloc-history
” command?

后端 未结 3 1641
萌比男神i
萌比男神i 2020-12-12 13:55

I am trying to resolve a \"message sent to deallocated instance \" error in iOS.

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 14:39

    Use instruments, you'll get the exact line -

    (In XCode) Run it through "Product" -> "Profile".

    This will start Instruments, there you should choose "Zombies" and reproduce the bug event.

    You'l get a pop-up once a zombie is called, press the chevron to see the exact line.

    Problem is usually a bad __bridge (optional bridges __brige_retained / __bridge_transfer / __bridge)

提交回复
热议问题