Zeeshan
Zeeshan

Reputation: 4244

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

On Apple Application Uploader I got this error:

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

I searched my code for FailWithError: and topMostAlert. I didnt find these in my code except for topMostAlert used to dismiss UIAlertView

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

I know this error is because of using 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 framework used in my code.

enter image description here

Upvotes: 1

Views: 743

Answers (1)

Rafał Sroka
Rafał Sroka

Reputation: 40030

You got rejected because you are using a private class UIAlertManager (via _UIAlertManager). Change your code so it uses only public APIs and it will get through the review process.

Upvotes: 2

Related Questions