iOS app crashing for apple review team and can't replicate - objective-c

My app is crashing for the apple review team but I can't replicate the issue. They sent me the crash log.
Incident Identifier:
CrashReporter Key: d91f018f5afc31f948a80025c7a09bb112a3caf4
Hardware Model: iPhone3,1
Process:
Path:
Identifier:
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-12 09:27:55.479 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3766b88f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x35370259 objc_exception_throw + 33
2 CoreFoundation 0x3766ea9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x3766d915 ___forwarding___ + 301
4 CoreFoundation 0x375c8650 _CF_forwarding_prep_0 + 48
5 Sportal_TDF 0x00031515 -[MenuViewController showStageList:] (MenuViewController.m:62)
6 CoreFoundation 0x375ca1fb -[NSObject performSelector:withObject:] + 43
7 Sportal_TDF 0x00005d93 -[DataViewControllerBase retrieveCachedJson:json:cacheAction:] (DataViewControllerBase.m:468)
8 Sportal_TDF 0x00005e57 -[DataViewControllerBase callWebService:json:cacheAction:successAction:] (DataViewControllerBase.m:480)
9 Sportal_TDF 0x000314f9 -[MenuViewController loadUpcomingStage] (MenuViewController.m:57)
10 Sportal_TDF 0x000317b9 -[MenuViewController viewWillAppear:] (MenuViewController.m:142)
11 UIKit 0x31381b95 -[UIViewController _setViewAppearState:isAnimating:] + 145
12 UIKit 0x31525ad1 __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke_0 + 137
13 CoreFoundation 0x3765f631 __NSArrayEnumerate + 365
14 CoreFoundation 0x375c4ed5 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 65
15 UIKit 0x31381c39 -[UIViewController _setViewAppearState:isAnimating:] + 309
16 UIKit 0x31381a49 -[UIViewController viewWillMoveToWindow:] + 233
17 UIKit 0x31342b05 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 529
18 UIKit 0x313424ab -[UIView(Internal) _addSubview:positioned:relativeTo:] + 303
19 UIKit 0x31342377 -[UIView(Hierarchy) addSubview:] + 31
20 UIKit 0x31377555 -[UIWindow addRootViewControllerViewIfPossible] + 289
21 UIKit 0x31369e87 -[UIWindow _setHidden:forced:] + 295
22 UIKit 0x313da7d5 -[UIWindow makeKeyAndVisible] + 25
23 Sportal_TDF 0x000030b3 -[Sportal_TDFAppDelegate application:didFinishLaunchingWithOptions:] (Sportal_TDFAppDelegate.m:107)
24 UIKit 0x31377cab -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1183
25 UIKit 0x313717dd -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 409
26 UIKit 0x3133fac3 -[UIApplication handleEvent:withNewEvent:] + 1011
27 UIKit 0x3133f567 -[UIApplication sendEvent:] + 55
28 UIKit 0x3133ef3b _UIApplicationHandleEvent + 5827
29 GraphicsServices 0x33d8122b PurpleEventCallback + 883
30 CoreFoundation 0x3763f523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
31 CoreFoundation 0x3763f4c5 __CFRunLoopDoSource1 + 141
32 CoreFoundation 0x3763e313 __CFRunLoopRun + 1371
33 CoreFoundation 0x375c14a5 CFRunLoopRunSpecific + 301
34 CoreFoundation 0x375c136d CFRunLoopRunInMode + 105
35 UIKit 0x3137086b -[UIApplication _run] + 551
36 UIKit 0x3136dcd5 UIApplicationMain + 1081
37 0x00002a07 main (main.m:16)
38 0x000029a0 0x1000 + 6560
It is crashing on line
#autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
How can I debug when I can't replicate the issue? Has anyone experienced this issue. My app was working fine in previous versions but this time it is crashing in 5.1.1. Any help would be greatly appreciated.

What does [MenuViewController showStageList:] contain on line 62!?
Obviously you are calling a method, that's non existent: [NSObject doesNotRecognizeSelector:].

Related

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at SFApplication sendEvent

Getting this error intermittently in production. Fails on objMsgSend for isKindOfClass. Having difficulty reproducing in development, would like to be able to do so. Have tried showing and dismissing the UIAlertController with other view controllers on the screen, moving to and from background etc. EDIT: Have now been able to reproduce this. Occurs when the UIAlertController appears with (shows underneath) an existing popover in the app. EDIT2: Appears to be an issue on iOS8, but less frequent although still occurring in iOS9
Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib
0x0000000194d8bbd0 objc_msgSend + 16 1 UIKit
0x0000000188a2d384 -[UIWindow setDelegate:] + 132 2 UIKit
0x0000000188cb5cd4 -[UIPresentationController
runTransitionForCurrentState] + 592 3 UIKit
0x0000000188cd1cd8 -[UIViewController
_dismissViewControllerWithAnimationController:interactionController:completion:]
+ 672 4 UIKit 0x0000000188ae0258 -[UIViewController _dismissViewControllerWithTransition:from:completion:] + 852 5 UIKit 0x0000000188a8875c -[UIViewController
dismissViewControllerWithTransition:completion:] + 952 6 UIKit
0x0000000188a88344 -[UIViewController
dismissViewControllerAnimated:completion:] + 252 7 UIKit
0x0000000188d84d7c -[UIAlertController
_dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:] + 420 8 UIKit 0x00000001889ac750
_UIGestureRecognizerUpdate + 8536 9 UIKit 0x00000001889e68dc -[UIWindow _sendGesturesForEvent:] + 1044 10 UIKit
0x00000001889e5f7c -[UIWindow sendEvent:] + 660 11 UIKit
0x00000001889b968c -[UIApplication sendEvent:] + 264 12 iPath
0x000000010023c3cc -[SFApplication sendEvent:] (SFApplication.m:72) 13
UIKit 0x0000000188c5860c
_UIApplicationHandleEventFromQueueEvent + 14992 14 UIKit 0x00000001889b7bf4 _UIApplicationHandleEventQueue + 1616 15
CoreFoundation 0x00000001841c29ec
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 16 CoreFoundation 0x00000001841c1c90
__CFRunLoopDoSources0 + 264 17 CoreFoundation 0x00000001841bfd40 __CFRunLoopRun + 712 18 CoreFoundation
0x00000001840ed0a4 CFRunLoopRunSpecific + 396 19 GraphicsServices
0x000000018d25b5a4 GSEventRunModal + 168 20 UIKit
0x0000000188a1eaa4 UIApplicationMain + 1488 21 iPath
0x00000001000ca308 main (main.m:33) 22 libdyld.dylib
0x00000001953e6a08 start + 4

Tracing cause of NSRangeException - exception breakpoint always returns to `int main(int argc, char * argv[])`

I've been stuck on this all day, and struggling to identify the source of a NSRangeException crash.
The app builds fine, but in the process of loading the first scene it throws:
2015-05-01 17:21:48.606 AppName[3707:447852] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]'
The full stack trace is:
*** First throw call stack:
(
0 CoreFoundation 0x0000000111d22c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000111584bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000111c0c093 -[__NSArrayM objectAtIndex:] + 227
3 UIKit 0x000000010f311881 _UIViewTopDownSubtreeTraversal + 193
4 UIKit 0x000000010f932fa3 -[UIView(UIConstraintBasedLayout_EngineDelegate) _invalidateSystemLayoutSizeFittingSizeAtEngineDelegateLevel] + 141
5 Foundation 0x000000010e931d6f -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 915
6 Foundation 0x000000010eabc1e8 -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 275
7 Foundation 0x000000010e92649a -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 220
8 UIKit 0x000000010f92fa34 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 474
9 Foundation 0x000000010e9341be -[NSISEngine withBehaviors:performModifications:] + 155
10 UIKit 0x000000010f92f83a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 452
11 UIKit 0x000000010f92f64d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
12 UIKit 0x000000010f92f933 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 217
13 Foundation 0x000000010e9341be -[NSISEngine withBehaviors:performModifications:] + 155
14 UIKit 0x000000010f92f83a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 452
15 UIKit 0x000000010f92f64d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
16 UIKit 0x000000010f92f2de -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 404
17 UIKit 0x000000010f92426e -[UIView(UIConstraintBasedLayout) _layoutEngine_windowDidChange] + 126
18 UIKit 0x000000010f32f561 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 209
19 UIKit 0x000000010f32f74a -[UIView(Internal) _didMoveFromWindow:toWindow:] + 698
20 UIKit 0x000000010f327ecf __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 125
21 UIKit 0x000000010f327e43 -[UIView(Hierarchy) _postMovedFromSuperview:] + 437
22 UIKit 0x000000010f331f48 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1660
23 UIKit 0x000000010f61884c -[UINavigationTransitionView transition:fromView:toView:] + 479
24 UIKit 0x000000010f4161b0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2984
25 UIKit 0x000000010f416448 -[UINavigationController _startDeferredTransitionIfNeeded:] + 523
26 UIKit 0x000000010f416f0e -[UINavigationController __viewWillLayoutSubviews] + 43
27 UIKit 0x000000010f561715 -[UILayoutContainerView layoutSubviews] + 202
28 UIKit 0x000000010f334a2b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 536
29 QuartzCore 0x000000010eff4ec2 -[CALayer layoutSublayers] + 146
30 QuartzCore 0x000000010efe96d6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
31 QuartzCore 0x000000010efe9546 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
32 QuartzCore 0x000000010ef55886 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
33 QuartzCore 0x000000010ef56a3a _ZN2CA11Transaction6commitEv + 462
34 UIKit 0x000000010f2b2a2d -[UIApplication _reportMainSceneUpdateFinished:] + 44
35 UIKit 0x000000010f2b36f1 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2648
36 UIKit 0x000000010f2b20d5 -[UIApplication workspaceDidEndTransaction:] + 179
37 FrontBoardServices 0x00000001158955e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
38 CoreFoundation 0x0000000111c5641c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
39 CoreFoundation 0x0000000111c4c165 __CFRunLoopDoBlocks + 341
40 CoreFoundation 0x0000000111c4b923 __CFRunLoopRun + 851
41 CoreFoundation 0x0000000111c4b366 CFRunLoopRunSpecific + 470
42 UIKit 0x000000010f2b1b42 -[UIApplication _run] + 413
43 UIKit 0x000000010f2b4900 UIApplicationMain + 1282
44 My360 0x000000010dcf26ff main + 111
45 libdyld.dylib 0x00000001127f5145 start + 1
46 ??? 0x0000000000000001 0x0 + 1
)
It's a large app, and I cannot identify which objectAtIndex is causing the issue.
After looking at similar issues, I added an Exception breakpoint:
However the breakpoint just keeps taking me back to the main.m file:
int main(int argc, char * argv[]) {
#autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
Can anyone point me towards how I can identify the line that is causing this exception?
Thanks!
Edit:
When I click on the My360 icon at the top of the debugging console, it shows this:

App works on iPhone Simulator, but crashes on real iPhone Device

Today i tried running my app on my iPhone device, and it crashed! It worked perfectly fine on the simulator, I don't know what the problem is.
These are the crash logs:
Identifier: Evader
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-09-13 16:41:54.656 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x377d888f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x354dd259 objc_exception_throw + 33
2 CoreFoundation 0x377d8789 +[NSException raise:format:] + 1
3 Foundation 0x380173a3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 91
4 Evader 0x0012ca41 -[CCSprite initWithTexture:] (CCSprite.m:192)
5 Evader 0x0012c1b1 +[CCSprite spriteWithTexture:] (CCSprite.m:83)
6 Evader 0x0011eb3d -[CCProgressTimer initWithTexture:] (CCProgressTimer.m:69)
7 Evader 0x0011ea55 -[CCProgressTimer initWithFile:] (CCProgressTimer.m:59)
8 Evader 0x0011e9e1 +[CCProgressTimer progressWithFile:] (CCProgressTimer.m:55)
9 Evader 0x00173579 -[HelloWorldLayer lives] (HelloWorldLayer.m:256)
10 Evader 0x001723ed -[HelloWorldLayer init] (HelloWorldLayer.m:101)
11 Evader 0x0010f073 +[CCNode node] (CCNode.m:258)
12 Evader 0x0017bd11 -[StartMenu doThis:] (StartMenu.m:75)
13 CoreFoundation 0x377db7e4 __invoking___ + 68
14 CoreFoundation 0x377367b1 -[NSInvocation invoke] + 161
15 Evader 0x0010aa03 -[CCMenuItem activate] (CCMenuItem.m:129)
16 Evader 0x001085ff -[CCMenu ccTouchEnded:withEvent:] (CCMenu.m:198)
17 CoreFoundation 0x377323fd -[NSObject performSelector:withObject:withObject:] + 53
18 Evader 0x0014f4ff -[CCTouchDispatcher touches:withEvent:withTouchType:] (CCTouchDispatcher.m:268)
19 Evader 0x0014fc43 -[CCTouchDispatcher touchesEnded:withEvent:] (CCTouchDispatcher.m:338)
20 Evader 0x001515c3 -[EAGLView touchesEnded:withEvent:] (EAGLView.m:332)
21 UIKit 0x314c692b -[UIWindow _sendTouchesForEvent:] + 319
22 UIKit 0x314c6319 -[UIWindow sendEvent:] + 381
23 UIKit 0x314ac695 -[UIApplication sendEvent:] + 357
24 UIKit 0x314abf3b _UIApplicationHandleEvent + 5827
25 GraphicsServices 0x33eee22b PurpleEventCallback + 883
26 CoreFoundation 0x377ac523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
27 CoreFoundation 0x377ac4c5 __CFRunLoopDoSource1 + 141
28 CoreFoundation 0x377ab313 __CFRunLoopRun + 1371
29 CoreFoundation 0x3772e4a5 CFRunLoopRunSpecific + 301
30 CoreFoundation 0x3772e36d CFRunLoopRunInMode + 105
31 GraphicsServices 0x33eed439 GSEventRunModal + 137
32 UIKit 0x314dacd5 UIApplicationMain + 1081
33 Evader 0x00171029 main (main.m:14)
34 Evader 0x000dec68 start + 40
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3198f32c __pthread_kill + 8
1 libsystem_c.dylib 0x3408c208 pthread_kill + 48
2 libsystem_c.dylib 0x34085298 abort + 88
3 libc++abi.dylib 0x36f12f64 abort_message + 40
4 libc++abi.dylib 0x36f10346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x354dd350 _objc_terminate + 140
6 libc++abi.dylib 0x36f103be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x36f1044a std::terminate() + 14
8 libc++abi.dylib 0x36f1181e __cxa_rethrow + 82
9 libobjc.A.dylib 0x354dd2a2 objc_exception_rethrow + 6
10 CoreFoundation 0x3772e506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x3772e366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x33eed432 GSEventRunModal + 130
13 UIKit 0x314dacce UIApplicationMain + 1074
14 Evader 0x00171022 main (main.m:14)
15 Evader 0x000dec60 start + 32
I have tried to look for the error, but I do not know what to look for. Can someone help solve this problem?
CCSprite initWithTexture: raises the exception that causes your app to exit. I'm not entirely up on Cocos2d but a quick check in the documentation suggests it raises exceptions on failure to find named files.
That being the case, I'd guess the problem is simply one of filename case. Macs are by default case insensitive. So if you have FunnyImage.png then the simulator will succeed if you attempt to load funnyimage.png.
iOS devices are case sensitive. So it will fail if you attempt to load funnyimage.png.
So probably what you want to do is check that all the filenames you've used in code exactly match the case of the actual files.

This class is not key value coding-compliant for the key featured

I suspect some code is trying to use my FooterArchiveView similar to a NSDictionary so I tried using breakpoints to find the bottleneck but my breakpoints are sending me on a wild goose chase into system files like UINibDecoderDecodeObjectForValue. What should I do?
2012-03-08 08:35:55.417 JOM App[44161:207] Uncaught exception: [<FooterArchiveView 0x9b27770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key featured.
2012-03-08 08:35:55.420 JOM App[44161:207] Stack trace: (
0 CoreFoundation 0x0169c06e __exceptionPreprocess + 206
1 libobjc.A.dylib 0x01c50d0a objc_exception_throw + 44
2 CoreFoundation 0x0169bf11 -[NSException raise] + 17
3 Foundation 0x00f89032 -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x00efaf7b _NSSetUsingKeyValueSetter + 136
5 Foundation 0x00efaeeb -[NSObject(NSKeyValueCoding) setValue:forKey:] + 287
6 UIKit 0x00628268 -[UIView(CALayerDelegate) setValue:forKey:] + 168
7 Foundation 0x00f15d60 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 393
8 UIKit 0x0080891a -[UIRuntimeOutletConnection connect] + 106
9 CoreFoundation 0x0169de1a -[NSObject performSelector:] + 58
10 CoreFoundation 0x01607821 -[NSArray makeObjectsPerformSelector:] + 273
11 UIKit 0x0080746e -[UINib instantiateWithOwner:options:] + 1178
12 UIKit 0x00809010 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 157
13 JOM App 0x0000e9ca -[ContentView setContent:] + 1258
14 JOM App 0x0000c906 -[NavigationView devotionsTUI:] + 390
15 CoreFoundation 0x0169dec9 -[NSObject performSelector:withObject:withObject:] + 73
16 UIKit 0x005ec5c2 -[UIApplication sendAction:to:from:forEvent:] + 96
17 UIKit 0x005ec55a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
18 UIKit 0x00691b76 -[UIControl sendAction:to:forEvent:] + 66
19 UIKit 0x0069203f -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503
20 UIKit 0x006912fe -[UIControl touchesEnded:withEvent:] + 549
21 UIKit 0x00611a30 -[UIWindow _sendTouchesForEvent:] + 513
22 UIKit 0x00611c56 -[UIWindow sendEvent:] + 273
23 UIKit 0x005f8384 -[UIApplication sendEvent:] + 464
24 UIKit 0x005ebaa9 _UIApplicationHandleEvent + 8196
25 GraphicsServices 0x02589fa9 PurpleEventCallback + 1274
26 CoreFoundation 0x016701c5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
27 CoreFoundation 0x015d5022 __CFRunLoopDoSource1 + 146
28 CoreFoundation 0x015d390a __CFRunLoopRun + 2218
29 CoreFoundation 0x015d2db4 CFRunLoopRunSpecific + 212
30 CoreFoundation 0x015d2ccb CFRunLoopRunInMode + 123
31 GraphicsServices 0x02588879 GSEventRunModal + 207
32 GraphicsServices 0x0258893e GSEventRun + 114
33 UIKit 0x005e9a9b UIApplicationMain + 1175
34 JOM App 0x000027d2 main + 178
35 JOM App 0x00002715 start + 53
36 ??? 0x00000001 0x0 + 1
)
"This class is not key value coding-compliant for the key featured." means that a class is trying to set a property on an object through key-value coding, only to find that it cannot. This most often occurs when you've defined an outlet, connected it in a nib, then removed the outlet from your code, leaving a dangling connection in the nib. When the nib is deserialised, it tries to connect up the outlet using key-value coding and you see the error above.

Linking Label to IBOutlet gives NSUnknownKeyException

I have created a TabBarView. On one of the tabs, I have a View with several Labels on it. It works fine.
When I connect the Labels in Interface Builder to the File's Owner (the corresponding IBOutlets) then the App crashes with the following error when I open that tab:
2011-05-15 18:36:29.070 AeroNav[958:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x18afe0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key speedLabel.'
*** Call stack at first throw:
(
0 CoreFoundation 0x312a664f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x34a07c5d objc_exception_throw + 24
2 CoreFoundation 0x312a63cd -[NSException dealloc] + 0
3 Foundation 0x351c7edb -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 182
4 Foundation 0x351809cb _NSSetUsingKeyValueSetter + 90
5 Foundation 0x35180217 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 194
6 Foundation 0x3516242f -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 130
7 UIKit 0x369848df -[UIRuntimeOutletConnection connect] + 66
8 CoreFoundation 0x3123ed7b -[NSObject(NSObject) performSelector:] + 18
9 CoreFoundation 0x3123e99d -[NSArray makeObjectsPerformSelector:] + 388
10 UIKit 0x36983847 -[UINib instantiateWithOwner:options:] + 586
11 UIKit 0x36984e09 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92
12 UIKit 0x368fe5e9 -[UIViewController _loadViewFromNibNamed:bundle:] + 36
13 UIKit 0x368cbfa5 -[UIViewController loadView] + 80
14 UIKit 0x367b0ebf -[UIViewController view] + 30
15 UIKit 0x367ee1db -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 66
16 UIKit 0x367ee18d -[UITabBarController transitionFromViewController:toViewController:] + 32
17 UIKit 0x367eda33 -[UITabBarController _setSelectedViewController:] + 186
18 UIKit 0x36872ceb -[UITabBarController setSelectedViewController:] + 14
19 UIKit 0x36872be7 -[UITabBarController _tabBarItemClicked:] + 226
20 CoreFoundation 0x31216571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
21 UIKit 0x36796ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
22 UIKit 0x36796e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
23 UIKit 0x36872a8b -[UITabBar _sendAction:withEvent:] + 270
24 CoreFoundation 0x31216571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
25 UIKit 0x36796ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
26 UIKit 0x36796e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
27 UIKit 0x36796e3b -[UIControl sendAction:to:forEvent:] + 38
28 UIKit 0x36796b8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
29 UIKit 0x367d0bd9 -[UIControl sendActionsForControlEvents:] + 16
30 UIKit 0x36872815 -[UITabBar(Static) _buttonUp:] + 80
31 CoreFoundation 0x31216571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
32 UIKit 0x36796ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
33 UIKit 0x36796e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
34 UIKit 0x36796e3b -[UIControl sendAction:to:forEvent:] + 38
35 UIKit 0x36796b8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
36 UIKit 0x36797423 -[UIControl touchesEnded:withEvent:] + 342
37 UIKit 0x36795bf5 -[UIWindow _sendTouchesForEvent:] + 368
38 UIKit 0x3679556f -[UIWindow sendEvent:] + 262
39 UIKit 0x3677e313 -[UIApplication sendEvent:] + 298
40 UIKit 0x3677dc53 _UIApplicationHandleEvent + 5090
41 GraphicsServices 0x36452e77 PurpleEventCallback + 666
42 CoreFoundation 0x3127da97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
43 CoreFoundation 0x3127f83f __CFRunLoopDoSource1 + 166
44 CoreFoundation 0x3128060d __CFRunLoopRun + 520
45 CoreFoundation 0x31210ec3 CFRunLoopRunSpecific + 230
46 CoreFoundation 0x31210dcb CFRunLoopRunInMode + 58
47 GraphicsServices 0x3645241f GSEventRunModal + 114
48 GraphicsServices 0x364524cb GSEventRun + 62
49 UIKit 0x367a8d69 -[UIApplication _run] + 404
50 UIKit 0x367a6807 UIApplicationMain + 670
51 AeroNav 0x00002423 main + 70
52 AeroNav 0x000023d8 start + 40
)
terminate called after throwing an instance of 'NSException'
I have read that it can be related to the xib not matching (correctly connected) to its view controller. I have no idea how to check or fix that?
This is how my header file looks:
//Stats.h
#import <UIKit/UIKit.h>
#interface Stats : UIViewController
{
IBOutlet UILabel *speedLabel;
IBOutlet UILabel *headingLabel;
}
#end
If anybody has any tips or links to other similar posts, I would appreciate it!
Thank you in advance!