Compile error when targeting iPad
itszero opened this issue · 1 comments
itszero commented
Hello lukhnos,
I encountered a problem when I target my app to iPad, a.k.a. the iPhoneOS 3.2. It seems that iOS 3.2 SDK does not have an declaration of NSXMLParserDelegate protocol, which caused a compile error on:
#if (MAC_OS_X_VERSION_10_6 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6) || (__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_2_0)
@interface OFXMLMapper : NSObject <NSXMLParserDelegate>
#else
@interface OFXMLMapper : NSObject
#endif
It can be compiled, however, if I just remove the <NSXMLParserDelegate>.
evadne commented
In your app project, try weak-linking Foundation and UIKit if necessary, set Base SDK to 4.x (or Latest iOS if it’s there), but target 3.2 in iOS Deployment Target?