When using Instruments to detect a memory leak, the real machine always fails to locate the code. The memory address is displayed. After searching online, the code is solved perfectly

The problem

why

Xcode generates a new dSYM file after each compilation of the project. This file contains the hexadecimal function address mapping information. 0x10086E34B is not generated because of a build Settings problem in our project.

To solve

In your own project, click Build Settings, enter “debug in” in the search box, and select DWARF with dSYM File in debug Information Format

Display can normally display the memory leak caused by the corresponding class, double click to jump to the corresponding code ~