Getting an Error - Undelcared selector 'viewController'
lukaskollmer opened this issue · 2 comments
lukaskollmer commented
When I prepared App Store submission and created an archive, a validation warning appears:
"This app references non--public selectors in Payload : viewController"
After searching my whole Code, the only place where the selector "viewController" is used is in "iVersion.m" ih the - (void)openAppPageInAppStore
method.
//get root view controller
UIViewController *rootViewController = nil;
id appDelegate = [[UIApplication sharedApplication] delegate];
if ([appDelegate respondsToSelector:@selector(viewController)])
{
rootViewController = [appDelegate valueForKey:@"viewController"];
}
What can do to get rid of this warning?
nicklockwood commented
This no longer occurs in latest release.