Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when targeting iPad #9

Open
itszero opened this issue Sep 26, 2010 · 1 comment
Open

Compile error when targeting iPad #9

itszero opened this issue Sep 26, 2010 · 1 comment

Comments

@itszero
Copy link

itszero commented Sep 26, 2010

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
Copy link

evadne commented Oct 9, 2010

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants