OGeek|极客世界-中国程序员成长平台

标题: ios - AppStore 拒绝 : use of private calls refers to my own methods [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 17:30
标题: ios - AppStore 拒绝 : use of private calls refers to my own methods

我收到以下拒绝消息:

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

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.

查看代码,我发现removeItems:在Xcode Core Data代码生成器实现的一段代码中(我有一个叫做items的子结构)。

selectedSectionisNew 是生成的核心数据代码中的属性。

代码通过了上次部署。并且代码在两三周前通过了 beta 审查。

Apple 是否禁止在我的私有(private)代码中使用这些函数名称?还是目前存在误报的 AppStore 问题?

更新:我收到了 Apple App Review 团队的以下答复:

Thank you for your response. For each of the selectors at issue, we found the following occurrences:

... 4 method uses deleted ...

To clarify, these are not necessarily direct uses of non-public APIs, but as your app does not have these statically defined, they are name collisions with possible private selectors, and as such revision is appropriate.

最后一部分特别有趣:这是否意味着我不能再选择任何方法的名称,而不必担心 Apple 可能会提出相同的方法名称?或者,将其简化为一个 objc 问题:什么是“静态定义”? static C 方法?类方法?



Best Answer-推荐答案


拒绝的原因实际上是我使用了 Apple 决定引入的选择器作为私有(private)选择器。

这可能发生在任何时间,任何版本,除了应用审查(在撰写本文时)之外没有测试设施。

看来苹果在这里改变了政策,早些时候他们只是发出警告,现在应用程序被拒绝了。

解决方案实际上很简单,但可能需要付出很大的努力。

关于ios - AppStore 拒绝 : use of private calls refers to my own methods,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39504260/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4