katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.76k forks source link

Unable to build (cordova 3.6.3) #512

Closed BrettGregson closed 9 years ago

BrettGregson commented 9 years ago

After installing the plugin, cordova build ios fails with the error:

/Applications/MAMP/htdocs/app/platforms/ios/HelloCordova/Plugins/de.appplant.cordova.plugin.local-notification/APPLocalNotification.m:597:25: error: use of undeclared identifier 'UIApplicationRegisterUserNotificationSettings' name:UIApplicationRegisterUserNotificationSettings 1 error generated.

BUILD FAILED The following build commands failed: CompileC build/HelloCordova.build/Debug-iphonesimulator/HelloCordova.build/Objects-normal/i386/APPLocalNotification.o HelloCordova/Plugins/de.appplant.cordova.plugin.local-notification/APPLocalNotification.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Error: /Applications/MAMP/htdocs/app/platforms/ios/cordova/build: Command failed with exit code 65 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:743:16) at Process.ChildProcess._handle.onexit (child_process.js:810:5)

Steps to replicate:

Create a new cordova project using cordova project create path/to/project Add iOS platform using cordova platform add ios Add plugin using cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications Build using cordova build ios

katzer commented 9 years ago

You need to build the plugin with iOS 8 SDK

papayaah commented 9 years ago

im getting this error in AppGyver with ios sdk 8.3, please any comment?

Build settings from command line:
    CODE_SIGN_IDENTITY = iPhone Distribution: Wotever Media Pte Ltd (P5DVJV7YG9)
    OTHER_CODE_SIGN_FLAGS = --keychain /Users/administrator/Library/Keychains/AppGyver-Testing
    PROVISIONING_PROFILE = d96af6c8-17fd-4c8f-8c11-e67bc5ba3a1c
    SDKROOT = iphoneos8.3
/Users/administrator/app-builder/STAGING/client/Plugins/de.appplant.cordova.plugin.local-notification/APPLocalNotification.m:651:25: error: use of undeclared identifier 'UIApplicationRegisterUserNotificationSettings'
                   name:UIApplicationRegisterUserNotificationSettings
                        ^
1 error generated.
navarrogpt commented 9 years ago

same here

chrisid commented 9 years ago

same here iOS SDK 8.4

spacesuitdiver commented 9 years ago

Same, trying to build with AppGyver.

MisterJack49 commented 9 years ago

Same here using vs-mda-remote, cordova 4.3.1 and iOS SDK 8.4

MisterJack49 commented 9 years ago

@mickeyren did you solve your issue ?

Heshyo commented 9 years ago

Still getting

/APPLocalNotification.o
/project/LocalNotif/Plugins/com.sharinglabs.cordova.plugin.local-notification/APPLocalNotification.m:651:25: error: 
error: use of undeclared identifier 'UIApplicationRegisterUserNotificationSettings'
                   name:UIApplicationRegisterUserNotificationSettings
                        ^
1 error generated.

on Phonegap Build with fork on today's code (v0.8.2dev).

Is this supposed to be working with PGB on 0.8.2dev?

MisterJack49 commented 9 years ago

With v0.8.1 it builds correctly for me so there is something broken in v0.8.2dev