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

Build Failed on iOS #27

Open
DipakMahapurkar opened this issue Apr 21, 2016 · 0 comments
Open

Build Failed on iOS #27

DipakMahapurkar opened this issue Apr 21, 2016 · 0 comments

Comments

@DipakMahapurkar
Copy link

DipakMahapurkar commented Apr 21, 2016

Hello @hollyschinsky, After following your given steps in my ionic app, the push notification plugin are successfully installed, When i build the ios project at that it will fail with given error:

/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:55:50: warning: 'UIRemoteNotificationTypeNone' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
UIRemoteNotificationType notificationTypes = UIRemoteNotificationTypeNone;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:68:5: note: 'UIRemoteNotificationTypeNone' has been explicitly marked deprecated here
UIRemoteNotificationTypeNone = 0,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:64:34: warning: 'UIRemoteNotificationTypeBadge' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
notificationTypes |= UIRemoteNotificationTypeBadge;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:69:5: note: 'UIRemoteNotificationTypeBadge' has been explicitly marked deprecated here
UIRemoteNotificationTypeBadge = 1 << 0,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:71:30: warning: 'UIRemoteNotificationTypeBadge' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
notificationTypes |= UIRemoteNotificationTypeBadge;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:69:5: note: 'UIRemoteNotificationTypeBadge' has been explicitly marked deprecated here
UIRemoteNotificationTypeBadge = 1 << 0,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:80:34: warning: 'UIRemoteNotificationTypeSound' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
notificationTypes |= UIRemoteNotificationTypeSound;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:70:5: note: 'UIRemoteNotificationTypeSound' has been explicitly marked deprecated here
UIRemoteNotificationTypeSound = 1 << 1,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:87:30: warning: 'UIRemoteNotificationTypeSound' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
notificationTypes |= UIRemoteNotificationTypeSound;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:70:5: note: 'UIRemoteNotificationTypeSound' has been explicitly marked deprecated here
UIRemoteNotificationTypeSound = 1 << 1,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:96:34: warning: 'UIRemoteNotificationTypeAlert' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
notificationTypes |= UIRemoteNotificationTypeAlert;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:71:5: note: 'UIRemoteNotificationTypeAlert' has been explicitly marked deprecated here
UIRemoteNotificationTypeAlert = 1 << 2,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:103:30: warning: 'UIRemoteNotificationTypeAlert' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
notificationTypes |= UIRemoteNotificationTypeAlert;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:71:5: note: 'UIRemoteNotificationTypeAlert' has been explicitly marked deprecated here
UIRemoteNotificationTypeAlert = 1 << 2,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:109:26: warning: 'UIRemoteNotificationTypeNewsstandContentAvailability' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
notificationTypes |= UIRemoteNotificationTypeNewsstandContentAvailability;
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:72:5: note: 'UIRemoteNotificationTypeNewsstandContentAvailability' has been explicitly marked deprecated here
UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:116:30: warning: 'UIRemoteNotificationTypeNone' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead. [-Wdeprecated-declarations]
if (notificationTypes == UIRemoteNotificationTypeNone)
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:68:5: note: 'UIRemoteNotificationTypeNone' has been explicitly marked deprecated here
UIRemoteNotificationTypeNone = 0,
^
/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:127:42: warning: 'registerForRemoteNotificationTypes:' is deprecated: first deprecated in iOS 8.0 - Please use registerForRemoteNotifications and registerUserNotificationSettings: instead [-Wdeprecated-declarations]
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:notificationTypes];
^
In module 'UIKit' imported from /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator/include/Cordova/CDVAvailabilityDeprecated.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:317:1: note: 'registerForRemoteNotificationTypes:' has been explicitly marked deprecated here

  • (void)registerForRemoteNotificationTypes:(UIRemoteNotificationType)types NS_DEPRECATED_IOS(3_0, 8_0, "Please use registerForRemoteNotifications and registerUserNotificationSettings: instead");
    ^
    /Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m:221:23: error: no visible @interface for 'UIView' declares the selector 'stringByEvaluatingJavaScriptFromString:'
    [self.webView stringByEvaluatingJavaScriptFromString:jsCallBack];
    ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    10 warnings and 1 error generated.

** BUILD FAILED **

The following build commands failed:
CompileC build/BBlankApp.build/Debug-iphonesimulator/BBlankApp.build/Objects-normal/i386/PushPlugin.o BBlankApp/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/cordova/build-debug.xcconfig,-project,BBlankApp.xcodeproj,ARCHS=i386,-target,BBlankApp,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/Desktop/Ionic 2 Demo/BBlankApp/platforms/ios/build/sharedpch

my ionic info:
Cordova CLI: 6.1.1
Ionic Framework Version: 1.0.0-beta.13
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v5.10.1
Xcode version: Xcode 6.4 Build version 6E35b

how to solve it please help me.
Thank You !!

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

1 participant