读懂苹果审核的那些坑

作者: LuxDark | 来源:发表于2016-03-23 11:29 被阅读3910次
前几天苹果突然给我们发邮件,要和我们聊聊我们的app,这可吓坏了,在Google上搜了下,肯定不是什么好事,很可能是下架的事情,这可吓坏了我,等了几天,苹果终于打来电话了。
首先,遇到这种情况一定不要着急,打电话不一定是聊下架的事情,可能只是告诉你一些事情。但你要记住,这时候很可能你们的app已经被苹果顶上了,把容易被拒的东西先去掉,等过了大概2个月风波过了,再加这些功能。那么,苹果究竟给我们发了什么邮件呢?现在我们就研究一下。

Your app uses or references the following non-public APIs, which is a violation of the App Store Review .
Guidelines:allInstalledApplications, defaultWorkspace

The use of non-public APIs is not permitted in the App Store because it can lead to a poor user experience should these APIs change.

Next Steps
Please revise your app to remove any non-public APIs. If you have defined methods in your source code with the same names as the above-mentioned APIs, we suggest altering your method names so that they no longer collide with Apple's private APIs to avoid your application being flagged in future submissions.Additionally, if you are using third party libraries, please update to the most recent version of those libraries. If you do not have access to the libraries' source, you may be able to search the compiled binary using the "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods. These tools can help you narrow down where the problematic code resides. You could also use the "nm" tool to verify if any third party libraries are calling these APIs.ResourcesFor information on the "nm" tool, please see the "nm tool" Xcode manual page.If there are no alternatives for providing the functionality your app requires, you may wish to file an enhancement request.If you have difficulty reproducing a reported issue, please try testing the workflow described in Technical Q&A QA1764: How to reproduce bugs reported against App Store submissions.If you have code-level questions after utilizing the above resources, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:- complete details of your rejection issue(s)- screenshots- steps to reproduce the issue(s)- symbolicated crash logs - if your issue results in a crash logWe hope you will consider making the appropriate revisions to your app and resubmit.If you have any questions about this information, please reply to this message via Resolution Center on iTunes Connect.Thank you,JennyApp Store ReviewApple, Inc.

苹果是说,我们使用了私有api。你的app使用了或者涉及到死私有api,这些api苹果是禁止使用的:
allInstalledApplications, defaultWorkspace。就是这两个。

苹果是禁止使用这些私有api的,因为这些私有api会导致很不好的用户体验。

下一步:请从你的app中移除这些私有api.如果在你的项目源码中定义了和这些私有api相同的方法名,我们建议你们修改你们的方法名,否则会影响你们的提交结果。

此外,如果您使用的是第三方库,请升级到最新版本的库。如果您没有访问第三方框架的源代码,您可以搜索使用“strings”编译二进制或“otool”的命令行工具。在“strings”工具可以输出使用私有api的方法列表,库调用和“otool-ov”将输出Objective-C类结构及其定义的方法。这些工具可以帮助你缩小,其中有问题的代码驻留。如果任何第三方库调用这些API,你也可以使用“纳米”工具来验证。

资源
如果没有提供您的应用程序需要的功能没有办法,你可以提交一个增强请求。
如果你有困难再现报告的问题,请尝试测试在技术Q&A QA1764介绍的工作流程:如何重现针对报道的App Store提交的bug。
如果你有利用上述资源后,代码级的问题,您可能希望与苹果公司开发人员技术支持咨询。当DTS工程师跟进你,请随时为:

  • 你拒绝的问题的完整细节
  • 截图
  • 步骤来重现问题
  • symbolicated崩溃日志 - 如果你的问题将导致崩溃日志

以上就是邮件的翻译,最后,我检测出是我们用的一个SDK中使用了私有api,为了保险起见,我们暂时去掉那个SDK了。
我用的办法是用终端命令:
1.首先打开终端:cd .....
2.然后输入命令:grep -r xxx .(例如:grep -r advertisingIdentifier .)
就会找出所有使用advertisingIdentifier方法的列表。

记住苹果审核人员打电话的时候千万要好好说,要诚实,不要态度强硬,不然害的还是自己。
希望这些对大家有所帮助。

相关文章

  • 读懂苹果审核的那些坑

    前几天苹果突然给我们发邮件,要和我们聊聊我们的app,这可吓坏了,在Google上搜了下,肯定不是什么好事,很可能...

  • 苹果审核那些坑

    一、HealthKit相关 Guideline 4.2.1 - Design - Minimum Function...

  • 苹果审核坑

    公司的app比较敏感,我觉得我整天工作有一半是用来跟苹果审核那边扯皮/(ㄒoㄒ)/,想想我应该记录下来。 ...

  • iOS苹果审核走过的那些坑

    一、苹果近期审核动态分析 1、机审越来越完善 众所周知,应用在上架至App Store前,必须通过神秘的苹果审核团...

  • IAP踩过的那些坑

    提交苹果审核,基本都是被IAP审核不过 说一下最近遇到的IAP审核不过的坑 如下图所示,苹果反馈一般说了一堆I...

  • 苹果审核那些事

    终于有时间聊聊审核的事情了,参与苹果 app 的 App Store 提审、审核被拒处理,也积累了一些经验,在此做...

  • 关于苹果审核的爬坑经历

    好久没来简书逛了,最近公司比较忙,稍微有点时间想到之前有人问我苹果审核问题,就把之前遇到过的苹果审核的坑给大家说一...

  • 关于苹果审核你要知道的

    作为一名产品汪,分享下我所积累的苹果审核知识点,知识点啊! 1、苹果审核被拒遇到过的坑 1.1 虚拟物品支付只能使...

  • ios审核那些坑

    最近半年主要处理iOS上架和测试方面的事,本来应该很好的记录这段新内容的,遇到过的坑的,还是主要缺时间,没有思考去...

  • IOS - 审核那些坑

    在提交app的过程中,多多少少都会遇到一些审核的问题。就在这里总结下: 持续更新中...... app截图没有进行...

网友评论

    本文标题:读懂苹果审核的那些坑

    本文链接:https://www.haomeiwen.com/subject/rwvllttx.html