"Symbol not found" error for UIPopoverController in an iPhone/iPad Universal App

Posted by alexbw on Stack Overflow See other posts from Stack Overflow or by alexbw
Published on 2010-06-11T23:31:38Z Indexed on 2010/06/12 1:32 UTC
Read the original article Hit count: 547

Filed under:
|
|

In a universal binary iPhone/iPad app of mine, users are able to adjust preferences in a view controller that's presented modally. On the iPhone, the settings panel is presented with presentModalViewController:animated:, and on the iPad, I use a UIPopoverController.

I'm having a heck of a time completely isolating the UIPopoverController code away from the iPhone code. Everytime I compile for the iPhone, I get the following error:

dyld: Symbol not found: _OBJC_CLASS_$_UIPopoverController
  Referenced from: /var/mobile/Applications/CBB37F87-AA6D-47E2-823A-E259E3268A32/MyApp debug.app/MyApp
  Expected in: /System/Library/Frameworks/UIKit.framework/UIKit

This is of course because UIKit on the iPhone doesn't have a UIPopoverController class. Does anybody have advice for how to effectively isolate the iPad API includes from the iPhone code, so I can actually run my code?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad