Instruments Leaks - Not showing my source code

2020-02-19 08:54发布

I am attempting to analyze an iPhone application using the Leaks application and everything appears to be working fine, except for when I try to view detailed information about a particular memory leak. Leaks does not appear to be loading my source code. Looking at the stack view on the right, I can see calls that reference iPhone frameworks, but anything that is referencing source code that I've written is empty. The screenshot below illustrates my point. The blocks that are light blue should be referencing my source code. Has anyone ever had this problem? Is Leaks just not finding my source code/symbols correctly? Thanks!

EDIT: I am compiling the app using the 'Device - iPhone OS 2.2' with the Debug configuration. I launch Leaks by selecting Run->Start With Performance Tool->Leaks from within Xcode. How would one go about 'making the symbol files available' for Leaks?

alt text
(source: andrewgarrison.com)

8条回答
冷血范
2楼-- · 2020-02-19 09:32

Did you compile in debug mode and make the symbol files available?

查看更多
神经病院院长
3楼-- · 2020-02-19 09:34

Project > Edit Project Settings

Choose Debug target

Click Build Tab

Make sure Strip Linked Product is unchecked

查看更多
登录 后发表回答