7

In my app I sometimes get this error:

objc[3899]: __weak variable at 0x610000056bd0 holds 0x10003 instead of 0x610000302640. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug.

How do I set a break on "objc_weak_error". Should I set it like this? enter image description here Probably not, I tried with and without quotation marks. As I get no break when the error occurs something is not right.

KaasCoder
  • 251
  • 5
  • 14

1 Answers1

20

You need to add Symbolic Breakpoint: enter image description here

Sergey
  • 1,589
  • 9
  • 13
  • fro some reason this break point does not stop on the error. Guessing it is safe to take that my crash my not be related to "This is probably incorrect use of objc_storeWeak() and objc_loadWeak()" – Pascale Beaulac Dec 10 '18 at 18:22