iPhone memory leak monitoring when not hooked up to a computer
I have an application that needs to be unplugged from the computer to use (it is interfacing with a device through the port) so I don't think using Instruments will wor开发者_如何转开发k. Is there any way to monitor memory allocations/leaks without the iPhone being attached to the computer? Thanks.
You should be able to use Instruments via WiFi instead of USB. See here. I never tried it, but it's a supported feature.
You could use a jailbroken iOS device and analyze the app with the command line tool leaks
. But that's not really a sweet solution.
Have you tried using Build and Analyze within Xcode? That will likely show many of your leaks without even needing to run the application.
精彩评论