問題描述
在使用Leaks進(jìn)行內(nèi)存泄露檢測的時候,Call Tree的Symbol Name都是地址,而且無法定位到代碼的位置
image
解決方法
在Xcode中設(shè)置Debug information Format
Building Setting -> Debug Information Format -> Debug -> DWARF with dSYM File

image
設(shè)置完成之后把Instruments重啟,項(xiàng)目重跑一次,然后就能看到Symbol Name了

image