I am building a universal for iphone/ipad and I already set the deployment target to 3.0. It can run well on iPad 3.2 and iphone 4.1. However, when I build and run it on my iPod 3.1.3, the runtime automatically picks the iPad code path and tell me that it cannot find UIPopOverController and UIMenuItem. In my iPhone path code, I don't use anything like that.
It builds successfully and only when trying to run, it says error and cannot find:
dyld: Symbol not found: _OBJC_CLASS_$_UIPopoverController
Referenced from: /var/mobile/Applications/My_APP
Expected in: /System/Library/Frameworks/UIKit.framework/UIKit
Editted :
If I remove all of my iPad classes and set the App.info Main nib bundle to be iphone only. Then, it works well. I think the problem is that it runs the iPad code. I don't know what's wrong with my iPod or my project