IOS memory error debugging (EXC_BAD_ACCESS), iosexc_bad_access
Memory Error crash:
Thread Stack:
It may be caused by access to the released object. According to the field, no memory error is found for the specific object.
1. Enable zombie object debugging
Edit Scheme-> Debug-> Diagnostics-> Enable Zombie Objects
2. Check the console and check whether the output is a Button error.
16:40:49. 959 funmiosbr_ZQB [2761: 388881] ****-[UIButton setHidden:]: message sent to deallocated instance 0x185942a0
3. Because the default debugger of the new version of xcode is lldb, the earlier version of the gdb debugger can be viewed using the following command:
(Gdb) info malloc-history 0x185942a0
(1) Profile your project
(2) Select Zombies from the list of instruments
(3) Make your app trigger the problem
(4) At this point you shoshould be presented with the address that was already deallocated and you can adjust e it.
(5) locate the problem