Reputation: 75
I was tuning my iPhone app before submission to AppStore, when I noticed that Instrument finds a lot of memory leaks if I run in simulator|debug... but if I run it on the Device Instrument doesn't find any one.... To be honest, there were two leaks and I've fixed them. Now no leaks on the Device, but still too leaks on the Simulator.
Who's right??
Upvotes: 1
Views: 820
Reputation: 75058
Did you have NSZombieEnabled set for your simulator build? That will cause a lot of leaks to be reported.
Upvotes: 1
Reputation: 38475
Trust in the device.
The simulator will be using a slightly different memory model - always test on the device :)
Sam
Upvotes: 2