苹果是否批准存在内存泄漏的iOS应用程序?

发布于 2024-09-14 04:44:12 字数 68 浏览 4 评论 0原文

我的应用程序中有一些内存泄漏,但我无法弄清楚原因。如果我释放这些对象,应用程序就会崩溃。 苹果批准我的应用程序有问题吗?

I have some memory leak in my app which yet I cannot figure out why. If I release those objects the app crashes.
Is it a problem to approve my app by apple?

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

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

发布评论

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

评论(2

晨曦慕雪 2024-09-21 04:44:13

您最初问题的答案是“是”,Apple 会批准它,只要他们测试的时间不够长,以免应用程序耗尽内存。他们花很少的时间测试应用程序,所以你可能会通过它们。

我不同意评论者的观点,他说如果你不能修复内存泄漏,你就没有必要编写代码。我同意我们应该以完美的代码为目标,但现实是这是您需要自己做出的业务决策。做出这个决定需要考虑很多因素,“完美”的应用程序不一定是最好的赚钱应用程序。

与您的决定相关:

  1. 泄漏有多大?
  2. 您的用户多久会遇到一次?如果是 100 行的表格单元格发生泄漏,那么问题就大了。如果这是首选项屏幕中的漏洞,那么您可能可以稍后修复它,因为典型的用户只会偶尔点击它一次。
  3. 为了修复内存泄漏而延迟启动应用程序的成本是多少?将其与修复泄漏的成本进行比较。
  4. 如果存在超过 1/1000 的人因您的泄漏而耗尽内存的巨大风险,那么您确实需要修复它。这些人会给你足够多的一星评论,从而损害你的评分。

最后,我绝对建议将您的泄漏代码作为一个单独的问题发布到 StackOverflow。

The answer to your original question is "Yes", Apple will approve it, as long as they don't test it long enough for the app to run out of memory. They spend very little time testing apps, so you're probably going to get by them.

I disagree with the commenter who said that you've got no business writing code if you can't fix a memory leak. I agree that we should aim for flawless code, but the reality is that this is a business decision you need to make for yourself. There are a number of factors that weigh in this decision, and a "perfect" app is not necessarily the best money making app.

Relevant to your decision:

  1. How big is the leak?
  2. How often will your users encounter it? If it's a leak in a table cell with 100 rows, then you've got a big problem. If it's a leak in a preferences screen then you can probably fix it later, because the typical user will only hit it once in a while.
  3. What is the cost in delaying launch of your app in order to fix the memory leak? Compare that with the cost of fixing the leak.
  4. If there is a substantial risk that more than 1/1000 people will run out of memory due to your leak, then you really will want to fix it. Those people will give you enough 1-star reviews to hurt your ratings.

Finally, I definitely recommend posting your leaky code to StackOverflow as a separate question.

你的他你的她 2024-09-21 04:44:13

如果您的应用程序崩溃,那么它可能不会被批准。

If your application crashes then it probably won't be approved.

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