kevin
kevin

Reputation: 75

Instrument finds leaks on Simulator, but not on the Device

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

Answers (2)

Did you have NSZombieEnabled set for your simulator build? That will cause a lot of leaks to be reported.

Upvotes: 1

deanWombourne
deanWombourne

Reputation: 38475

Trust in the device.

The simulator will be using a slightly different memory model - always test on the device :)

Sam

Upvotes: 2

Related Questions