苹果是否批准存在内存泄漏的iOS应用程序?
我的应用程序中有一些内存泄漏,但我无法弄清楚原因。如果我释放这些对象,应用程序就会崩溃。 苹果批准我的应用程序有问题吗?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您最初问题的答案是“是”,Apple 会批准它,只要他们测试的时间不够长,以免应用程序耗尽内存。他们花很少的时间测试应用程序,所以你可能会通过它们。
我不同意评论者的观点,他说如果你不能修复内存泄漏,你就没有必要编写代码。我同意我们应该以完美的代码为目标,但现实是这是您需要自己做出的业务决策。做出这个决定需要考虑很多因素,“完美”的应用程序不一定是最好的赚钱应用程序。
与您的决定相关:
最后,我绝对建议将您的泄漏代码作为一个单独的问题发布到 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:
Finally, I definitely recommend posting your leaky code to StackOverflow as a separate question.
如果您的应用程序崩溃,那么它可能不会被批准。
If your application crashes then it probably won't be approved.