该应用程序引用Payload / <appname> .app / <app name =“”>中的非公共选择器:FailWithError:,topMostAlert </app> </appname>

时间:2014-03-06 09:08:33

标签: ios objective-c

在Apple Application Uploader上我收到此错误:

The app references non-public selectors in Payload/<Appname>.app/<App name>: FailWithError: , topMostAlert

我在代码中搜索了FailWithError:topMostAlert。 我没有在我的代码中找到这些内容,只有topMostAlert用于解除UIAlertView

Class UIAlertManager = NSClassFromString(@"_UIAlertManager");
UIAlertView *alertView = [UIAlertManager performSelector:@selector(topMostAlert)];
[alertView dismissWithClickedButtonIndex:0 animated:NO];

我知道此错误是因为您在自己的代码或第三方代码中使用了一个选择器,该选择器与某些标记为非公开的选择器同名(Apple提供的API)。

我正在添加代码中使用的框架截图。

enter image description here

1 个答案:

答案 0 :(得分:2)

您被拒绝是因为您使用的是私人类 UIAlertManager (通过_UIAlertManager)。更改您的代码,使其仅使用公开APIs,它将通过审核流程。