Hi All,
I ama trying to build an app but recently ran into this issue and I am not sure how to go about solving it. I am new to xcode and swift in general and I have been teaching it to myself using guides and videos. Any thoughts on this error?
2017-05-22 21:22:56.624 MyApp[954:32392] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MyApp.ViewController 0x7fc265531de0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key staticDataSource.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000110f26b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010e2b8141 objc_exception_throw + 48
2 CoreFoundation 0x0000000110f26a59 -[NSException raise] + 9
3 Foundation 0x000000010ddcde8b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 UIKit 0x000000010e925644 -[UIViewController setValue:forKey:] + 87
5 UIKit 0x000000010eb926b9 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x0000000110ecce8d -[NSArray makeObjectsPerformSelector:] + 269
7 UIKit 0x000000010eb9106f -[UINib instantiateWithOwner:options:] + 1856
8 UIKit 0x000000010e92bc73 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
9 UIKit 0x000000010e92c589 -[UIViewController loadView] + 177
10 UIKit 0x000000010e92c8ba -[UIViewController loadViewIfRequired] + 195
11 UIKit 0x000000010e933056 -[UIViewController __viewWillAppear:] + 118
12 UIKit 0x000000010e95d078 -[UINavigationController _startCustomTransition:] + 1305
13 UIKit 0x000000010e96d617 -[UINavigationController _startDeferredTransitionIfNeeded:] + 687
14 UIKit 0x000000010e96e7f1 -[UINavigationController __viewWillLayoutSubviews] + 58
15 UIKit 0x000000010eb602bc -[UILayoutContainerView layoutSubviews] + 231
16 UIKit 0x000000010e84d20b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1268
17 QuartzCore 0x0000000113cf0904 -[CALayer layoutSublayers] + 146
18 QuartzCore 0x0000000113ce4526 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 370
19 QuartzCore 0x0000000113ce43a0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
20 QuartzCore 0x0000000113c73e92 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294
21 QuartzCore 0x0000000113ca0130 _ZN2CA11Transaction6commitEv + 468
22 UIKit 0x000000010e783307 _UIApplicationFlushRunLoopCATransactionIfTooLate + 167
23 UIKit 0x000000010ef83cab __handleEventQueue + 5843
24 CoreFoundation 0x0000000110eccc01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25 CoreFoundation 0x0000000110eb20cf __CFRunLoopDoSources0 + 527
26 CoreFoundation 0x0000000110eb15ff __CFRunLoopRun + 911
27 CoreFoundation 0x0000000110eb1016 CFRunLoopRunSpecific + 406
28 GraphicsServices 0x0000000112e31a24 GSEventRunModal + 62
29 UIKit 0x000000010e78a0d4 UIApplicationMain + 159
30 MyApp 0x000000010dce1c47 main + 55
31 libdyld.dylib 0x0000000111ec665d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I also have a screen shot of the probem:
Any advice would be very much appreciated!
Thanks again!