在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)。
我正在添加代码中使用的框架截图。
答案 0 :(得分:2)
您被拒绝是因为您使用的是私人类 UIAlertManager (通过_UIAlertManager
)。更改您的代码,使其仅使用公开APIs
,它将通过审核流程。