Skip to content

Universal app crashes when deployed on iPhone with iOS 3.x #15

ahndee opened this Issue Aug 16, 2010 · 2 comments

2 participants

ahndee commented Aug 16, 2010

Trying to create an universal application with MGSplitViewController will crash upon start on an iPhone running iOS 3.x with the message

Symbol not found: _OBJC_CLASS_$_UIPopoverController

The issue can be resolved by replacing

_hiddenPopoverController = [[UIPopoverController alloc] initWithContentViewController:self.masterViewController];


_hiddenPopoverController = [[NSClassFromString(@"UIPopoverController") alloc] initWithContentViewController:self.masterViewController];

in MGSplitViewController.m


Or use weak linking...

ahndee commented Aug 16, 2010

I'd rather not do that - quoting Apple employee "big3" from

FYI: Weak linking a framework with as many symbols as UIKit will probably cause an appreciable increase in your app's startup time. It's best avoided if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.