I am setting up parse and have some problems. I am using a storyboard to do this. However I am getting a error saying
2014-04-08 23:11:59.802 ParseStarterProject[5729:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/user/Library/Application Support/iPhone Simulator/7.1-64/Applications/CCA0F113-88E5-4181-A5A0-77841C12939E/ParseStarterProject.app> (loaded)' with name 'MainWindow''
*** First throw call stack:
(
0 CoreFoundation 0x0000000102d1f495 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010258a99e objc_exception_throw + 43
2 CoreFoundation 0x0000000102d1f2ad +[NSException raise:format:] + 205
3 UIKit 0x0000000101392742 -[UINib instantiateWithOwner:options:] + 775
4 UIKit 0x00000001013942a0 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 138
5 UIKit 0x000000010113760d -[UIApplication _loadMainNibFileNamed:bundle:] + 42
6 UIKit 0x000000010113693e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 454
7 UIKit 0x0000000101147d4c -[UIApplication handleEvent:withNewEvent:] + 3189
8 UIKit 0x0000000101148216 -[UIApplication sendEvent:] + 79
9 UIKit 0x0000000101138086 _UIApplicationHandleEvent + 578
10 GraphicsServices 0x0000000102c4c71a _PurpleEventCallback + 762
11 GraphicsServices 0x0000000102c4c1e1 PurpleEventCallback + 35
12 CoreFoundation 0x0000000102ca1679 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
13 CoreFoundation 0x0000000102ca144e __CFRunLoopDoSource1 + 478
14 CoreFoundation 0x0000000102cca903 __CFRunLoopRun + 1939
15 CoreFoundation 0x0000000102cc9d83 CFRunLoopRunSpecific + 467
16 UIKit 0x00000001011362e1 -[UIApplication _run] + 609
17 UIKit 0x0000000101137e33 UIApplicationMain + 1010
18 ParseStarterProject 0x0000000100002f83 main + 115
19 ParseStarterProject 0x0000000100001fd4 start + 52
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Why am I getting this, and are there possible fixes?
Regarding the error message and the "MainWindow". I guess, you deleted a UIWindow from the storyboard, which is still referenced in you AppDelegate.
Could you validate this by checking, whether there is some Zombie-reference of a MainWindow-Class?
In case you added a Storyboard for being new main interface:
Please make sure, you also set this new Storyboard as new Main Interface in your Build target. Herefore, go to your xCode-Project file and select the build target. In the General tab set the "Main Interface" to match your new storyboard
Related
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)
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.
downloaded here this parser launched, it works, but when I want to change main interface (the default setting is MainWindow.xib, and I want to put my xib), shows the following error. I wish that I was a structure MyNewXib.xib - MainWindow.xib - RootViewController.xib, but when I add in MainInterface MyNewXib.xib get this error, how do I fix it.
2015-03-23 11:27:02.686 TetraVer 1.1[411:5899] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x7fa352c30c10> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000110e1ba75 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010fad9bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000110e1b6b9 -[NSException raise] + 9
3 Foundation 0x000000010f42fd43 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x0000000110d655e0 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010e3f54ed -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x000000010e3f6f92 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 160
7 UIKit 0x000000010e12dc71 -[UIApplication _loadMainNibFileNamed:bundle:] + 46
8 UIKit 0x000000010e12cd2b -[UIApplication _runWithMainScene:transitionContext:completion:] + 1074
9 UIKit 0x000000010e12bd35 -[UIApplication workspaceDidEndTransaction:] + 179
10 FrontBoardServices 0x000000010fe84243 __31-[FBSSerialQueue performAsync:]_block_invoke + 16
11 CoreFoundation 0x0000000110d50c7c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
12 CoreFoundation 0x0000000110d469c5 __CFRunLoopDoBlocks + 341
13 CoreFoundation 0x0000000110d46785 __CFRunLoopRun + 2389
14 CoreFoundation 0x0000000110d45bc6 CFRunLoopRunSpecific + 470
15 UIKit 0x000000010e12b7a2 -[UIApplication _run] + 413
16 UIKit 0x000000010e12e580 UIApplicationMain + 1282
17 TetraVer 1.1 0x000000010e06c6f4 main + 68
18 libdyld.dylib 0x0000000114c7d145 start + 1
19 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Make sure you have the elements linked correctly with interface and definition (check the outlet for you xib elements). This error comes usually when you have one ore more element in xib witch definition (#property) was deleted.
Does anyone have any ideas, this is killing me. Create an app from a Single View Application template, delete the storyboard and ViewController.swift file and then add a new view controller called MainViewController with a Xib.
Change the project settings for Main Interface from Main to MainViewController and run.
In previous versions of Xcode this would have worked fine. Now no matter what I try I cannot get this to work. Tried initialising the View Controller in the App Delegate but no joy, it just crashes with this exception:
2014-11-22 11:14:48.084 TestApp[9781:422842] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x7fd510611320> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001025c9f35 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010410dbb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001025c9b79 -[NSException raise] + 9
3 Foundation 0x00000001029e17b3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x0000000102513e80 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010311ac7d -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x000000010311c722 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 160
7 UIKit 0x0000000102e54b11 -[UIApplication _loadMainNibFileNamed:bundle:] + 46
8 UIKit 0x0000000102e53c19 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1075
9 UIKit 0x0000000102e52bf2 -[UIApplication workspaceDidEndTransaction:] + 179
10 FrontBoardServices 0x0000000105cad2a3 __31-[FBSSerialQueue performAsync:]_block_invoke + 16
11 CoreFoundation 0x00000001024ff53c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
12 CoreFoundation 0x00000001024f5285 __CFRunLoopDoBlocks + 341
13 CoreFoundation 0x00000001024f5045 __CFRunLoopRun + 2389
14 CoreFoundation 0x00000001024f4486 CFRunLoopRunSpecific + 470
15 UIKit 0x0000000102e52669 -[UIApplication _run] + 413
16 UIKit 0x0000000102e55420 UIApplicationMain + 1282
17 TestApp 0x00000001023e9cae top_level_code + 78
18 TestApp 0x00000001023e9cea main + 42
19 libdyld.dylib 0x00000001048e7145 start + 1
20 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
You need to provide a xib or storyboard file for the Main Interface. Not a ViewController.
Also make sure you don't have any dangling outlets. Make sure that the objects in the xib don't have an outlet set which does not exist in your ViewController.h or ViewController.m
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