Application refers to non-public selectors in Payload / <Appname> .app / <application name>: FailWithError :, topMostAlert

In the Apple Application Uploader, I got this error:

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

I was looking for my code for FailWithError: and topMostAlert . I did not find them in my code except topMostAlert used to reject UIAlertView

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

I know that this error is due to the use of a selector in your own code or third-party code that has the same name as some selector that is marked as non-public (Apple Provided API).

I am adding a screenshot of the frame used in my code.

enter image description here

+1
source share
1 answer

Failed because you are using the private UIAlertManager class (via _UIAlertManager ). Modify your code to use only public APIs and it will go through the browsing process.

+2
source

All Articles