前几天苹果突然给我们发邮件,要和我们聊聊我们的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方法的列表。
记住苹果审核人员打电话的时候千万要好好说,要诚实,不要态度强硬,不然害的还是自己。
希望这些对大家有所帮助。
网友评论