iOS应用程序被拒绝:非公共API [英] iOS App Rejected : non-public APIs

查看:674
本文介绍了iOS应用程序被拒绝:非公共API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前已经批准了两次相同的应用,但经过一些更改(例如设置图片视图并再次提交应用)后,Apple拒绝了我的应用以查看以下错误:

The same app has already been approved twice before but after some changes like set the image view and submitting the app again, Apple rejected my app for following errors:


效果 - 2.5.1

Performance - 2.5.1

您的应用使用或引用以下非公开API:

Your app uses or references the following non-public APIs:

setResult:nextStarIndex

setResult: nextStarIndex

在App Store上不允许使用非公共API,因为
它可能会导致糟糕的用户体验这些API会发生变化。

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

如果用户包含私有API,用户如何测试他/她的应用程序?

How can a user test his/her application if it contains Private API's?

我在项目的任何地方都没有使用 setResult: nextStarIndex 代码所以我该怎么办?吗?

I am not using setResult: and nextStarIndex code anywhere in my project so what should I do?

推荐答案

我最后一次遇到这个问题是因为我的代码中的方法与Cocoa中的私有方法之间发生了命名空间冲突API。您还可以使用 grep 找出您使用这些选择器的确切位置:

The last time I encountered this was because of a namespace collision between methods in my code and private methods in the Cocoa API. You can also use grep to find out exactly where you're using those selectors:

grep -R 'setResult:' *

这篇关于iOS应用程序被拒绝:非公共API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆