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

查看:25
本文介绍了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

您的应用使用或引用了以下非公共 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天全站免登陆