开发者

iPhone Simulator leaks vs iPhone Device Leaks?

开发者 https://www.devze.com 2022-12-19 07:14 出处:网络
Is it possible that there will still be leaks when running my开发者_JAVA百科 app on an iPhone even if the simulator has absolutely none??If you run your app through Instruments, and there don\'t appea

Is it possible that there will still be leaks when running my开发者_JAVA百科 app on an iPhone even if the simulator has absolutely none??


If you run your app through Instruments, and there don't appear to be any memory leaks, you're probably okay. Make sure to thoroughly test the application, to cover as many scenarios and as much code as possible.

No software is perfect, so there's always a chance, but if you are thorough with testing, you should be fine.


It is possible that some memory leaks to be present when tested on a real device. Since the firmware of the device is different than of the simulator, and also due to the fact that simulator is a software, that won't always be perfect as andy suggested, you have to test for memory leaks in the device itself before submitting. Simulator may not always catch all the memory leaks.


My first answer would be: Yes, always. All that matters is the hardware in the end. The simulator is just there to reduce the time between iterations when testing.

My second answer would be: it's possible because there's no way to prove that an app won't leak memory. See also: the halting problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号