gpt4 book ai didi

ios - 含义 - 使用非公开 API 的应用将被拒绝

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:02:36 24 4
gpt4 key购买 nike

我们的应用因为使用了非公开的API而被iTunes拒绝

We found that your app uses one or more non-public APIs, which is not in compliance with the App Store Review Guidelines. The use of non-public APIs is not permissible because it can lead to a poor user experience should these APIs change.

We found the following non-public API/s in your app: .......

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.

那个拒绝是什么意思?

是否意味着:有一些苹果接口(interface)“SomeAppleInterface”

// SomeAppleInterface.m
@implementation SomeAppleInterface

- (void)SomePrivateAPI // this api doesn't exists in SomeAppleInterface.h file
{
// ... some code
}

在我的代码中,我调用了苹果类的私有(private) api:

- (void)MyCodeMethod 
{
SomeAppleInterface x;
[x SomePrivateAPI];
}

是这个错误的意思吗?如果是,我怎么能调用这个私有(private)方法,它在 h 文件中没有提到?请帮助我理解

最佳答案

您要求澄清 a rejection也就是说,很可能只是 Apple 的一个错误。这个列表看起来像一堆误报。他们只是说您似乎正在调用他们认为是私有(private) API 一部分的一堆方法。

在这个问题中,您提供了一个稻草人,向我们展示了一个无法编译的私有(private)方法的调用。您似乎在问“我怎么会不小心调用了 Apple 私有(private) API?”

问题是,意外调用私有(private) API 真的很难。您可以创建一个公开私有(private) API 的类别 @interface。还有其他方法,但这根本不是您可以不小心做的事情。您必须有意识地采取步骤调用私有(private) API。

因此问题变成了如何从 Apple 获得误报报告。有可能您根本没有使用 Apple 的私有(private) API,但碰巧在您自己的类中有具有相同签名的方法。这可能会导致误报,只需更改您的方法名称即可解决。

但在这种情况下,我认为发生了一些完全不同的事情,我认为在您收到 Apple 的回复之前不值得尝试追踪它。在您收到他们的回复之前,没有必要大肆渲染它。

关于ios - 含义 - 使用非公开 API 的应用将被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27765486/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com