nicklockwood / iVersion

[DEPRECATED]
http://www.charcoaldesign.co.uk/source/cocoa#iversion
Other
1.95k stars 292 forks source link

Getting an Error - Undelcared selector 'viewController' #59

Closed lukaskollmer closed 9 years ago

lukaskollmer commented 10 years ago

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?

lisbakke commented 10 years ago

Duplicate of #56

nicklockwood commented 9 years ago

This no longer occurs in latest release.