Here's what I did: I control dragged from the button to the viewController and starting the app is fine. However, when I click the "let's get started" button, which should segue into the next part of the app, I just get an error. What am I doing wrong?
Latest version of xcode (not beta) and code I wrote (I didn't write any code for the segue though) was in swift.
Also, the error message I'm getting
Registration for remote notification failed with error: REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION
2016-07-28 14:20:53.108 TouchLogin[6368:503476] -[TouchLogin.BWWalkthroughPageViewController GetStarted:]: unrecognized selector sent to instance 0x7f8cc351b360
2016-07-28 14:20:53.111 TouchLogin[6368:503476] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TouchLogin.BWWalkthroughPageViewController GetStarted:]: unrecognized selector sent to instance 0x7f8cc351b360'
*** First throw call stack:
(
0 CoreFoundation 0x000000010132bd85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000103310deb objc_exception_throw + 48
2 CoreFoundation 0x0000000101334d3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010127acfa ___forwarding___ + 970
4 CoreFoundation 0x000000010127a8a8 _CF_forwarding_prep_0 + 120
5 UIKit 0x0000000101d96a8d -[UIApplication sendAction:to:from:forEvent:] + 92
6 UIKit 0x0000000101f09e67 -[UIControl sendAction:to:forEvent:] + 67
7 UIKit 0x0000000101f0a143 -[UIControl _sendActionsForEvents:withEvent:] + 327
8 UIKit 0x0000000101f09263 -[UIControl touchesEnded:withEvent:] + 601
9 UIKit 0x000000010227ec52 _UIGestureRecognizerUpdate + 10279
10 UIKit 0x0000000101e0948e -[UIWindow _sendGesturesForEvent:] + 1137
11 UIKit 0x0000000101e0a6c4 -[UIWindow sendEvent:] + 849
12 UIKit 0x0000000101db5dc6 -[UIApplication sendEvent:] + 263
13 UIKit 0x0000000101d8f553 _UIApplicationHandleEventQueue + 6660
14 CoreFoundation 0x0000000101251301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
15 CoreFoundation 0x000000010124722c __CFRunLoopDoSources0 + 556
16 CoreFoundation 0x00000001012466e3 __CFRunLoopRun + 867
17 CoreFoundation 0x00000001012460f8 CFRunLoopRunSpecific + 488
18 GraphicsServices 0x000000010496dad2 GSEventRunModal + 161
19 UIKit 0x0000000101d94f09 UIApplicationMain + 171
20 TouchLogin 0x0000000100fa6cc2 main + 114
21 libdyld.dylib 0x000000010437192d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Related
I am following an Apple tutorial on creating an iOS Application using Swift [Developing iOS Apps (Swift)], and I have followed each step exactly as it is. This app has been running flawlessly in the Simulator, but suddenlly it started throwing a SIGABRT error (I made a short research to understand what a SIGABRT (Signal Abort) error is, and I've even found some other answers, but no one seems to fix my problem).
Console Output:
2017-10-25 02:00:23.553 myApplication[1358:48276] -[SWRevealViewController revealToggel:]: unrecognized selector sent to instance 0x7ff74c813400
2017-10-25 02:00:23.824 myApplication[1358:48276] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SWRevealViewController revealToggel:]: unrecognized selector sent to instance 0x7ff74c813400'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a39ae65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000109e11deb objc_exception_throw + 48
2 CoreFoundation 0x000000010a3a348d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010a2f090a ___forwarding___ + 970
4 CoreFoundation 0x000000010a2f04b8 _CF_forwarding_prep_0 + 120
5 UIKit 0x000000010a973194 -[UIApplication sendAction:to:from:forEvent:] + 92
6 UIKit 0x000000010ad747b7 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 152
7 UIKit 0x000000010a973194 -[UIApplication sendAction:to:from:forEvent:] + 92
8 UIKit 0x000000010aae26fc -[UIControl sendAction:to:forEvent:] + 67
9 UIKit 0x000000010aae29c8 -[UIControl _sendActionsForEvents:withEvent:] + 311
10 UIKit 0x000000010aae2b43 -[UIControl _sendActionsForEvents:withEvent:] + 690
11 UIKit 0x000000010aae1af8 -[UIControl touchesEnded:withEvent:] + 601
12 UIKit 0x000000010a9e249b -[UIWindow _sendTouchesForEvent:] + 835
13 UIKit 0x000000010a9e31d0 -[UIWindow sendEvent:] + 865
14 UIKit 0x000000010a991b66 -[UIApplication sendEvent:] + 263
15 UIKit 0x000000010a96bd97 _UIApplicationHandleEventQueue + 6844
16 CoreFoundation 0x000000010a2c6a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17 CoreFoundation 0x000000010a2bc95c __CFRunLoopDoSources0 + 556
18 CoreFoundation 0x000000010a2bbe13 __CFRunLoopRun + 867
19 CoreFoundation 0x000000010a2bb828 CFRunLoopRunSpecific + 488
20 GraphicsServices 0x000000010f092ad2 GSEventRunModal + 161
21 UIKit 0x000000010a971610 UIApplicationMain + 171
22 myApplication 0x00000001098f224d main + 109
23 libdyld.dylib 0x000000010d2c392d start + 1
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Typo? Should be revealToggle...
I think you misspelled revealToggel:. It should be revealToggle:.
The first view controller of my project crashed when segue'd to from another view controller - but not when it loads. I get this error message:
2016-01-05 20:06:33.836 collaboration[48812:1788623] -[collaboration.createAccountViewController loginExisting:]: unrecognized selector sent to instance 0x796cc950
2016-01-05 20:06:33.849 collaboration[48812:1788623] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[collaboration.createAccountViewController loginExisting:]: unrecognized selector sent to instance 0x796cc950'
*** First throw call stack:
(
0 CoreFoundation 0x00396a14 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x022c5e02 objc_exception_throw + 50
2 CoreFoundation 0x0039fd63 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x002dd6bd ___forwarding___ + 1037
4 CoreFoundation 0x002dd28e _CF_forwarding_prep_0 + 14
5 libobjc.A.dylib 0x022da0b5 -[NSObject performSelector:withObject:withObject:] + 84
6 UIKit 0x00df7b79 -[UIApplication sendAction:to:from:forEvent:] + 118
7 UIKit 0x00df7af8 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 64
8 UIKit 0x00f978f8 -[UIControl sendAction:to:forEvent:] + 79
9 UIKit 0x00f97c78 -[UIControl _sendActionsForEvents:withEvent:] + 408
10 UIKit 0x00f96c7e -[UIControl touchesEnded:withEvent:] + 714
11 UIKit 0x00e74182 -[UIWindow _sendTouchesForEvent:] + 1095
12 UIKit 0x00e75220 -[UIWindow sendEvent:] + 1159
13 UIKit 0x00e19f93 -[UIApplication sendEvent:] + 266
14 UIKit 0x00def668 _UIApplicationHandleEventQueue + 7802
15 CoreFoundation 0x002b06ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x002a638b __CFRunLoopDoSources0 + 523
17 CoreFoundation 0x002a57a8 __CFRunLoopRun + 1032
18 CoreFoundation 0x002a50e6 CFRunLoopRunSpecific + 470
19 CoreFoundation 0x002a4efb CFRunLoopRunInMode + 123
20 GraphicsServices 0x07075664 GSEventRunModal + 192
21 GraphicsServices 0x070754a1 GSEventRun + 104
22 UIKit 0x00df5bfa UIApplicationMain + 160
23 collaboration 0x00085a3c main + 140
24 libdyld.dylib 0x039bca21 start + 1
25 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
As you can see, it cites the variable 'loginExisting' as the issue, however loginExisting is not a variable on in any of my scripts (it was before but has since been removes). How can I 'refresh' XCode so that it forgets about the absent variable? I have tried restarting my machine and cleaning XCode but have had not success.
Thank you for your help.
Go to your storyboard that's crashing and right click the yellow icon at the top of the ViewController.
After right clicking, look towards the bottom where it says "Received actions" and delete all of the actions pertaining to the loginExisting method.
This is one of many possible culprits, but this tends to be the most common.
EDIT: It's also possible that you have a property (IBOutlet) connected to the storyboard that no longer exists which will throw an error.
In my new app I have to external links. One in the view that only is shown the very first time the app is started and one in tab3. The link in tab3 is working, but the link in the initial screen is giving a crash, while exactly the same code is used.
Code for ViewController.h
- (IBAction)findAllyId;
Code for ViewController.m
- (IBAction)findAllyId {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://youtu.be/H_AguOLEHW8"]];
}
Error log after pressing the Button that is linked to this findAllyId
2015-03-13 19:03:30.666 Friend codes for Kingdom Age[89581:40810062] -[ViewController findAllyId]: unrecognized selector sent to instance 0x7facaa694530
2015-03-13 19:03:30.674 Friend codes for Kingdom Age[89581:40810062] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController findAllyId]: unrecognized selector sent to instance 0x7facaa694530'
*** First throw call stack:
(
0 CoreFoundation 0x000000010e141a75 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010dddabb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010e148d1d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010e0a09dc ___forwarding___ + 988
4 CoreFoundation 0x000000010e0a0578 _CF_forwarding_prep_0 + 120
5 UIKit 0x000000010c430a22 -[UIApplication sendAction:to:from:forEvent:] + 75
6 UIKit 0x000000010c537e50 -[UIControl _sendActionsForEvents:withEvent:] + 467
7 UIKit 0x000000010c53721f -[UIControl touchesEnded:withEvent:] + 522
8 UIKit 0x000000010c476b68 -[UIWindow _sendTouchesForEvent:] + 735
9 UIKit 0x000000010c477493 -[UIWindow sendEvent:] + 683
10 UIKit 0x000000010c443fb1 -[UIApplication sendEvent:] + 246
11 UIKit 0x000000010c451227 _UIApplicationHandleEventFromQueueEvent + 17700
12 UIKit 0x000000010c42c23c _UIApplicationHandleEventQueue + 2066
13 CoreFoundation 0x000000010e076c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
14 CoreFoundation 0x000000010e06cb5d __CFRunLoopDoSources0 + 269
15 CoreFoundation 0x000000010e06c194 __CFRunLoopRun + 868
16 CoreFoundation 0x000000010e06bbc6 CFRunLoopRunSpecific + 470
17 GraphicsServices 0x000000010fc5aa58 GSEventRunModal + 161
18 UIKit 0x000000010c42f580 UIApplicationMain + 1282
19 Friend codes for Kingdom Age 0x000000010b9f9d83 main + 115
20 libdyld.dylib 0x000000010e6af145 start + 1
21 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Again, exactly the same code (with a different URL) is working in another screen of the app, with a click on a button.
I started getting this error when I tried to make a button play a sound. I'm not getting a code errors (Red or Yellow markers) but my app crashes when I click the button.
Here's what the console outputs:
2014-05-12 20:24:59.866 ReAct[4511:60b] -[ViewController PlayAudioBUtton:]: unrecognized selector sent to instance 0x9059280
2014-05-12 20:24:59.875 ReAct[4511:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController PlayAudioBUtton:]: unrecognized selector sent to instance 0x9059280'
*** First throw call stack:
(
0 CoreFoundation 0x01c6c1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x019eb8e5 objc_exception_throw + 44
2 CoreFoundation 0x01d09243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x01c5c50b ___forwarding___ + 1019
4 CoreFoundation 0x01c5c0ee _CF_forwarding_prep_0 + 14
5 libobjc.A.dylib 0x019fd880 -[NSObject performSelector:withObject:withObject:] + 77
6 UIKit 0x006ad3b9 -[UIApplication sendAction:to:from:forEvent:] + 108
7 UIKit 0x006ad345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
8 UIKit 0x007aebd1 -[UIControl sendAction:to:forEvent:] + 66
9 UIKit 0x007aefc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
10 UIKit 0x007ae243 -[UIControl touchesEnded:withEvent:] + 641
11 UIKit 0x006ecddd -[UIWindow _sendTouchesForEvent:] + 852
12 UIKit 0x006ed9d1 -[UIWindow sendEvent:] + 1117
13 UIKit 0x006bf5f2 -[UIApplication sendEvent:] + 242
14 UIKit 0x006a9353 _UIApplicationHandleEventQueue + 11455
15 CoreFoundation 0x01bf577f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x01bf510b __CFRunLoopDoSources0 + 235
17 CoreFoundation 0x01c121ae __CFRunLoopRun + 910
18 CoreFoundation 0x01c119d3 CFRunLoopRunSpecific + 467
19 CoreFoundation 0x01c117eb CFRunLoopRunInMode + 123
20 GraphicsServices 0x031ac5ee GSEventRunModal + 192
21 GraphicsServices 0x031ac42b GSEventRun + 104
22 UIKit 0x006abf9b UIApplicationMain + 1225
23 ReAct 0x000020cd main + 141
24 libdyld.dylib 0x02996701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I think it's due to the first description:
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController PlayAudioBUtton:]: unrecognized selector sent to instance 0x9059280'"
But I'm unsure of what this means because I am new to Xcode and iOS coding alike.
Any help is greatly appreciated.
I was messing with my storyboard with no code involved and got this error after I connected "Terms of use" button to a view controller. It was working fine before this action.
-I created and connected a class to Terms of Use View Controller
-I used action push segue to connect
2014-01-22 17:26:45.434 Project[1162:a0b] -[AboutViewController termsOfUseButton:]: unrecognized selector sent to instance 0x8c89d40
2014-01-22 17:26:45.437 Project[1162:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AboutViewController termsOfUseButton:]: unrecognized selector sent to instance 0x8c89d40'
*** First throw call stack:
(
0 CoreFoundation 0x0173b5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x014be8b6 objc_exception_throw + 44
2 CoreFoundation 0x017d8903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x0172b90b ___forwarding___ + 1019
4 CoreFoundation 0x0172b4ee _CF_forwarding_prep_0 + 14
5 libobjc.A.dylib 0x014d0874 -[NSObject performSelector:withObject:withObject:] + 77
6 UIKit 0x0022e0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
7 UIKit 0x0022e04e -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
8 UIKit 0x003260c1 -[UIControl sendAction:to:forEvent:] + 66
9 UIKit 0x00326484 -[UIControl _sendActionsForEvents:withEvent:] + 577
10 UIKit 0x00325733 -[UIControl touchesEnded:withEvent:] + 641
11 UIKit 0x0026b51d -[UIWindow _sendTouchesForEvent:] + 852
12 UIKit 0x0026c184 -[UIWindow sendEvent:] + 1232
13 UIKit 0x0023fe86 -[UIApplication sendEvent:] + 242
14 UIKit 0x0022a18f _UIApplicationHandleEventQueue + 11421
15 CoreFoundation 0x016c483f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x016c41cb __CFRunLoopDoSources0 + 235
17 CoreFoundation 0x016e129e __CFRunLoopRun + 910
18 CoreFoundation 0x016e0ac3 CFRunLoopRunSpecific + 467
19 CoreFoundation 0x016e08db CFRunLoopRunInMode + 123
20 GraphicsServices 0x036909e2 GSEventRunModal + 192
21 GraphicsServices 0x03690809 GSEventRun + 104
22 UIKit 0x0022cd3b UIApplicationMain + 1225
23 Project 0x00003a9d main + 141
24 libdyld.dylib 0x01d77725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
(Lame but I found the solution after I finished writing the question)
The reason for this error is I created an IBAction-UIButton method on touch up inside.
I deleted that code and hoped the traces were deleted.
It seems it wasnt, I had to unconnect the touch up inside by clicking the X in red squared spot.
I would try recreating the button and the segue, maybe you changed the IBOutlet name by accident or any other thing.
GL HF