该应用程序引用Payload / .app / 中的非公共选择器:FailWithError :, topMostAlert

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

The app references non-public selectors in Payload/.app/: FailWithError: , topMostAlert

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

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

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

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

在此处输入图像描述

您被拒绝是因为您正在使用私有类UIAlertManager (通过_UIAlertManager )。 更改您的代码,使其仅使用公共APIs并完成审核流程。