Trouble Running Leaks Instrument

巧了我就是萌 提交于 2020-01-06 04:46:48

问题


I'm having trouble running the Leaks Instrument since installing the 3.0 SDK. An NDA disclaimer here I don't think this is a 3.0 SDK issue, just a configuration problem. So I'm looking for advice on configuring the tools in question not the 3.0 SDK per se.

Here’s the breakdown of the behavior I am seeing.

My Application is compiled to OS version 2.2. I can run it out of XCode in debug mode on the Simulator and Device running 2.2, 2.2.1, 3.0.

If I start it with Performance Tools -> Leaks, I get an error message from the OS, “The application xxxx quit unexpectedly”, “Ignore, Report, Relaunch.” If I click “Ignore” one of two things will happen, either Leaks tells me it couldn’t attach, or Leaks stop responding to input and I have to Force Quit. Interesting thing is the Simulator starts in 3.0 OS.

If I start Instruments Manually and attach to a running 2.2 Simulator it shows the same behavior.

If I attach Leaks to an iPhone Device it works.

It seems that once I launch Leaks my app won't run in the simulator until I do a new build.

Any ideas for getting my Simulator/Leaks/Xcode synced back up?

Thanks, Geoff


回答1:


I stumbled across my own answer. I let the app build against the 3.0 SDK version then ran the Leaks Instrument. Now when I build the app against the 2.2 SDK the Leak Instrument will work. It looks like a classic case of "jiggling the handle" to fix.



来源:https://stackoverflow.com/questions/671527/trouble-running-leaks-instrument

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!