Please send as a solution why my app crash on launch with following error below

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIApplication registerUserNotificationSettings:]:

asked 16 Apr '15, 07:19
TesterIphone's gravatar image

TesterIphone
111

Hi,

Could you please specify whether you are using the Native iOS SDK, or any cross-platform tool? Also, it would be helpful to see the full crash log.

(16 Apr '15, 08:41) Andrew_H Andrew_H's gravatar image

We test on Iphone 4 with ios 7.0. below show the full crash log

-[UIApplication registerUserNotificationSettings:]: unrecognized selector sent to instance 0x79135a90 Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIApplication registerUserNotificationSettings:]: unrecognized selector sent to instance 0x79135a90' *** First throw call stack: (

(17 Apr '15, 11:49) TesterIphone TesterIphone's gravatar image

1 libobjc.A.dylib 0x026668e5 objc_exception_throw + 44 2 CoreFoundation 0x02e09243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275 3 CoreFoundation 0x02d5c50b forwarding + 1019 4 CoreFoundation 0x02d5c0ee _CF_forwarding_prep_0 + 14 5 PasswordProtector 0x0010da41 -[AppDelegate application:didFinishLaunchingWithOptions:] + 1969 6 PasswordProtector 0x002ae5a2 dynamicDidFinishLaunching + 123

(17 Apr '15, 11:50) TesterIphone TesterIphone's gravatar image

7 UIKit 0x0132014f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309 8 UIKit 0x01320aa1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810 9 UIKit 0x01325667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824 10 UIKit 0x01339f92 -[UIApplication handleEvent:withNewEvent:] + 3517 11 UIKit 0x0133a555 -[UIApplication sendEvent:] + 85

(17 Apr '15, 11:50) TesterIphone TesterIphone's gravatar image

12 UIKit 0x01327250 _UIApplicationHandleEvent + 683 13 GraphicsServices 0x03660f02 _PurpleEventCallback + 776 14 GraphicsServices 0x03660a0d PurpleEventCallback + 46 15 CoreFoundation 0x02ce7ca5 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53 16 CoreFoundation 0x02ce79db __CFRunLoopDoSource1 + 523

(17 Apr '15, 11:50) TesterIphone TesterIphone's gravatar image

18 CoreFoundation 0x02d119d3 CFRunLoopRunSpecific + 467 19 CoreFoundation 0x02d117eb CFRunLoopRunInMode + 123 20 UIKit 0x01324d9c -[UIApplication _run] + 840 21 UIKit 0x01326f9b UIApplicationMain + 1225 22 PasswordProtector 0x0014948d main + 141 23 libdyld.dylib 0x041a16d9 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException..

(17 Apr '15, 11:51) TesterIphone TesterIphone's gravatar image
showing 5 of 6 show 1 more comments
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×444
×111
×30

question asked: 16 Apr '15, 07:19

question was seen: 873 times

last updated: 17 Apr '15, 11:51