Need a bit of help as well. Got the same thread1 sigabrt error. Hope you can help! Here is my code -
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
/
return true
}
func applicationWillResignActive(application: UIApplication) {
/
/
}
func applicationDidEnterBackground(application: UIApplication) {
/
/
}
func applicationWillEnterForeground(application: UIApplication) {
/
}
func applicationDidBecomeActive(application: UIApplication) {
/
}
func applicationWillTerminate(application: UIApplication) {
/
}
}
and Here is my error message -
2016-05-07 20:17:48.053 User-Pwd 2[58970:364513] -[User_Pwd_2.LoginVC textUsername:]: unrecognized selector sent to instance 0x7fd661e19f00
2016-05-07 20:17:48.060 User-Pwd 2[58970:364513] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[User_Pwd_2.LoginVC textUsername:]: unrecognized selector sent to instance 0x7fd661e19f00'
*** First throw call stack:
(
0 CoreFoundation 0x00000001051d2d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000106f76deb objc_exception_throw + 48
2 CoreFoundation 0x00000001051dbd3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000105121cfa ___forwarding___ + 970
4 CoreFoundation 0x00000001051218a8 _CF_forwarding_prep_0 + 120
5 UIKit 0x00000001059fca8d -[UIApplication sendAction:to:from:forEvent:] + 92
6 UIKit 0x0000000105b6fe67 -[UIControl sendAction:to:forEvent:] + 67
7 UIKit 0x0000000105b70143 -[UIControl _sendActionsForEvents:withEvent:] + 327
8 UIKit 0x00000001063f96c5 -[UITextField _resignFirstResponder] + 298
9 UIKit 0x0000000105c0ea1a -[UIResponder _finishResignFirstResponder] + 292
10 UIKit 0x00000001063f94ef -[UITextField _finishResignFirstResponder] + 49
11 UIKit 0x0000000105c0eac9 -[UIResponder resignFirstResponder] + 140
12 UIKit 0x00000001063f93bc -[UITextField resignFirstResponder] + 136
13 UIKit 0x0000000105c0e777 -[UIResponder becomeFirstResponder] + 362
14 UIKit 0x0000000105aa4151 -[UIView(Hierarchy) becomeFirstResponder] + 138
15 UIKit 0x00000001063f8186 -[UITextField becomeFirstResponder] + 51
16 UIKit 0x0000000105efc6db -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessary] + 287
17 UIKit 0x0000000105f0019a -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) oneFingerTap:] + 3817
18 UIKit 0x0000000105ef2b28 _UIGestureRecognizerSendTargetActions + 153
19 UIKit 0x0000000105eef19a _UIGestureRecognizerSendActions + 162
20 UIKit 0x0000000105eed197 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 843
21 UIKit 0x0000000105ef5655 ___UIGestureRecognizerUpdate_block_invoke898 + 79
22 UIKit 0x0000000105ef54f3 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 342
23 UIKit 0x0000000105ee2e75 _UIGestureRecognizerUpdate + 2634
24 UIKit 0x0000000105a6f48e -[UIWindow _sendGesturesForEvent:] + 1137
25 UIKit 0x0000000105a706c4 -[UIWindow sendEvent:] + 849
26 UIKit 0x0000000105a1bdc6 -[UIApplication sendEvent:] + 263
27 UIKit 0x00000001059f5553 _UIApplicationHandleEventQueue + 6660
28 CoreFoundation 0x00000001050f8301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00000001050ee22c __CFRunLoopDoSources0 + 556
30 CoreFoundation 0x00000001050ed6e3 __CFRunLoopRun + 867
31 CoreFoundation 0x00000001050ed0f8 CFRunLoopRunSpecific + 488
32 GraphicsServices 0x0000000109868ad2 GSEventRunModal + 161
33 UIKit 0x00000001059faf09 UIApplicationMain + 171
34 User-Pwd 2 0x0000000104fe76d2 main + 114
35 libdyld.dylib 0x0000000107a3a92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)