iPhone 模拟器泄露与 iPhone 设备泄露?

发布于 2024-08-19 21:19:34 字数 50 浏览 9 评论 0原文

即使模拟器完全没有泄漏,在 iPhone 上运行我的应用程序时是否仍然可能会出现泄漏?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

享受孤独 2024-08-26 21:19:34

如果您通过 Instruments 运行您的应用程序,并且似乎没有任何内存泄漏,那么您可能没问题。确保彻底测试应用程序,以覆盖尽可能多的场景和尽可能多的代码。

没有软件是完美的,所以总是有机会的,但如果你进行了彻底的测试,你应该没问题。

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.

筑梦 2024-08-26 21:19:34

在真实设备上测试时可能会出现一些内存泄漏。由于设备的固件与模拟器不同,而且模拟器是一个软件,并不总是像安迪建议的那样完美,因此您必须在提交之前测试设备本身的内存泄漏。模拟器可能并不总能捕获所有内存泄漏。

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.

像你 2024-08-26 21:19:34

我的第一个答案是:是的,总是。重要的是最终的硬件。模拟器只是为了减少测试时迭代之间的时间。

我的第二个答案是:这是可能的,因为没有办法证明应用程序不会泄漏内存。另请参阅:停止问题。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文