ios4 - How to make a universal app (iPad and iphone 4.1) runs on iPod 3.1.3 -
i building universal iphone/ipad , set deployment target 3.0. can run on ipad 3.2 , iphone 4.1. however, when build , run on ipod 3.1.3, runtime automatically picks ipad code path , tell me cannot find uipopovercontroller , uimenuitem. in iphone path code, don't use that.
it builds , when trying run, says error , 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 remove of ipad classes , set app.info main nib bundle iphone only. then, works well. think problem runs ipad code. don't know what's wrong ipod or project
you need make runtime tests classes not present on 3.1.3. cannot have code [uipopovercontroler alloc], , must weaklink frameworks.
see answers question:
(the question different yours, root problem same one.)
or article:
http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html
Comments
Post a Comment