Got UIUserNotificationSettings undeclared identifier


I used Xcode 5.1.1 and maverick OS.

As per getting started document, I have compiled and run given sample example. I got "UIUserNotificationSettings" undeclared identifier.
And got "- (instancetype)initWithBeacon:(ESTBeacon *)beacon
config:(ESTBeaconUpdateConfig *)config
delegate:(id<ESBeaconUpdateInfoDelegate>)delegate NSDESIGNATEDINITIALIZER;" lexical and preprocessor expected ":".

I need help you guys. Thank you in advance.


Our Examples are only compatible with iOS 8 at this point, that's why you're getting the error.

If you want to run 'em on iOS 7, you simply need to replace this line with:

[application registerUserNotificationSettings:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)];

hey, thank you . your guidance help me lot