Will Apple accept Apps with deprecated code? [closed]

狂风中的少年 提交于 2019-11-26 22:50:52

问题


Will Apple accept Apps for selling inside the App-Store with deprecated code?


回答1:


Yes. Deprecated doesn't mean unavailable or disallowed; if it did, it would be called something else, or those methods would simply be removed from the API.

Deprecation is a way of letting you know that you should start transitioning your existing codebase. The rule of thumb should be: don't add code that you know uses deprecated functionality, that's just silly. Be aware as you work on older code bases that deprecated methods you were using may need your attention sooner or later.

One of the risks of continuing to use deprecated methods is that they may be more primitive and dangerous than newer versions, may not take into account all current OS realities, and possibly less well tested by Apple over time. You run the risk of having this bite you even before they vanish from the framework.




回答2:


Yes, Apple will accept your app assuming everything else goes right. Deprecated doesn't mean the app will not work. It's just a way of telling you that you should start using newer code as opposed to older code. The older code will be removed from the API eventually, so it's better to fix it sooner than to try to build your app and find out that it doesn't work.




回答3:


I've used the following deprecated code (the init method is deprecated):

[[NSDateFormatter alloc] init];

in an app recently that was approved.




回答4:


Well... It depends. In most cases probably not, but I don't run the app store so I'm not sure.



来源:https://stackoverflow.com/questions/7909986/will-apple-accept-apps-with-deprecated-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!