Following tutorials from https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/index.html
At step "Connect the UI to Code".
Following error seen in console when I try to run in simulator.
2015-08-25 03:03:50.162 MealApp[7855:6029867] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MealApp.ViewController 0x7fc91bf39a60> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key someTextField.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000107344c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000108eafbb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001073448a9 -[NSException raise] + 9
3 Foundation 0x0000000107762b53 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 UIKit 0x00000001080ca606 -[UIRuntimeOutletCollectionConnection performConnect] + 537
5 CoreFoundation 0x000000010728cd50 -[NSArray makeObjectsPerformSelector:] + 224
6 UIKit 0x0000000107ebb4eb -[UINib instantiateWithOwner:options:] + 1506
7 UIKit 0x0000000107d136d8 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
8 UIKit 0x0000000107d13cc8 -[UIViewController loadView] + 109
9 UIKit 0x0000000107d13f39 -[UIViewController loadViewIfRequired] + 75
10 UIKit 0x0000000107d143ce -[UIViewController view] + 27
11 UIKit 0x0000000107c2f289 -[UIWindow addRootViewControllerViewIfPossible] + 58
12 UIKit 0x0000000107c2f64f -[UIWindow _setHidden:forced:] + 247
13 UIKit 0x0000000107c3bde1 -[UIWindow makeKeyAndVisible] + 42
14 UIKit 0x0000000107bdf417 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732
15 UIKit 0x0000000107be219e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
16 UIKit 0x0000000107be1095 -[UIApplication workspaceDidEndTransaction:] + 179
17 FrontBoardServices 0x000000010a9ac5e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
18 CoreFoundation 0x000000010727841c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
19 CoreFoundation 0x000000010726e165 __CFRunLoopDoBlocks + 341
20 CoreFoundation 0x000000010726d923 __CFRunLoopRun + 851
21 CoreFoundation 0x000000010726d366 CFRunLoopRunSpecific + 470
22 UIKit 0x0000000107be0b02 -[UIApplication _run] + 413
23 UIKit 0x0000000107be38c0 UIApplicationMain + 1282
24 MealApp 0x0000000107144d67 main + 135
25 libdyld.dylib 0x00000001095e5145 start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Seems to fail once I add in a textField. And I have added the delegation stuff.
Any clue? I'm a newbie.
-----------------------------
XCode 6.4
OSX Yosemite 10.10.5 on MacBook (Retina, 12-inch, Early 2015)