objectiveflickr icon indicating copy to clipboard operation
objectiveflickr copied to clipboard

Compile error when targeting iPad

Open itszero opened this issue 15 years ago • 1 comments

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>.

itszero avatar Sep 26 '10 18:09 itszero

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?

evadne avatar Oct 09 '10 06:10 evadne