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

Unknown type name 'UIBackgroundTaskIdentifier' #49

Closed
antonigiske opened this issue Oct 19, 2014 · 4 comments
Closed

Unknown type name 'UIBackgroundTaskIdentifier' #49

antonigiske opened this issue Oct 19, 2014 · 4 comments

Comments

@antonigiske
Copy link

Don't know if this lib is supporting iOS8, but I get this message after installing it and trying to run a simple GET request.

 SVHTTPRequest/SVHTTPRequest.m:46:34: Unknown type name 'UIBackgroundTaskIdentifier'
@leezhm
Copy link

leezhm commented Nov 22, 2014

got the same error, and I'm sure it is supporting iOS8, but I don not know how to fix.

@leezhm
Copy link

leezhm commented Nov 22, 2014

@antonlglske I fixed that problem,

Add a prefix compile file to your project

#import <Availability.h>

#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
#endif

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif

@jayeshkavathiya
Copy link

just #import <UIKit/UIKit.h>

working complete

@cocoajin
Copy link

#import <UIKit/UIApplication.h>

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

4 participants