Build SearchBar problem

I have xcode 12.5.1 and I’m building the 3 charpter of UIKIt Apprentice - SearchBar. After building the first chapter I expereinced a problem to build the app:
The error message -
022-10-27 20:54:07.330062+0200 searchBar[5899:522972] [Storyboard] Unknown class _TtC9searchBar14ViewController in Interface Builder file. 2022-10-27 20:54:07.935484+0200 searchBar[5899:522972] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fd4f5707a70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key searchBar.' *** First throw call stack: ( 0 CoreFoundation 0x0000000111675fba __exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010fda8ff5 objc_exception_throw + 48 2 CoreFoundation 0x0000000111675c5b -[NSException init] + 0 3 Foundation 0x000000010f88046c -[NSObject(NSKeyValueCoding) setValue:forKey:] + 331 4 UIKitCore 0x000000011433fac4 -[UIViewController setValue:forKey:] + 74 5 UIKitCore 0x000000011467ec0b -[UIRuntimeOutletConnection connect] + 109 6 CoreFoundation 0x000000011165f6e6 -[NSArray makeObjectsPerformSelector:] + 228 7 UIKitCore 0x000000011467ae70 -[UINib instantiateWithOwner:options:] + 2175 8 UIKitCore 0x0000000114347921 -[UIViewController loadView] + 668 9 UIKitCore 0x0000000114347cbc -[UIViewController loadViewIfRequired] + 172 10 UIKitCore 0x0000000114348436 -[UIViewController view] + 27 11 UIKitCore 0x0000000114ac2c73 -[UIWindow addRootViewControllerViewIfPossible] + 313 12 UIKitCore 0x0000000114ac2362 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 219 13 UIKitCore 0x0000000114ac3325 -[UIWindow _setHidden:forced:] + 362 14 UIKitCore 0x0000000114ad63a6 -[UIWindow _mainQueue_makeKeyAndVisible] + 42 15 UIKitCore 0x0000000114d14c05 -[UIWindowScene _makeKeyAndVisibleIfNeeded] + 202 16 UIKitCore 0x0000000113ed180c +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1671 17 UIKitCore 0x0000000114a85df9 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1114 18 UIKitCore 0x0000000114a86128 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 289 19 UIKitCore 0x0000000114567ab4 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358 20 FrontBoardServices 0x000000011c6b740b -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 398 21 FrontBoardServices 0x000000011c6dfe55 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102 22 FrontBoardServices 0x000000011c6c4f12 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209 23 FrontBoardServices 0x000000011c6dfb28 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 352 24 libdispatch.dylib 0x000000011205974e _dispatch_client_callout + 8 25 libdispatch.dylib 0x000000011205c656 _dispatch_block_invoke_direct + 295 26 FrontBoardServices 0x000000011c7055d0 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30 27 FrontBoardServices 0x000000011c7052b6 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433 28 FrontBoardServices 0x000000011c70577b -[FBSSerialQueue _performNextFromRunLoopSource] + 22 29 CoreFoundation 0x00000001115e3ede __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 30 CoreFoundation 0x00000001115e3dd6 __CFRunLoopDoSource0 + 180 31 CoreFoundation 0x00000001115e3300 __CFRunLoopDoSources0 + 340 32 CoreFoundation 0x00000001115dd9f7 __CFRunLoopRun + 875 33 CoreFoundation 0x00000001115dd1a7 CFRunLoopRunSpecific + 567 34 GraphicsServices 0x000000011ca0cd85 GSEventRunModal + 139 35 UIKitCore 0x0000000114a844df -[UIApplication _run] + 912 36 UIKitCore 0x0000000114a8939c UIApplicationMain + 101 37 libswiftUIKit.dylib 0x000000011092df42 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 98 38 searchBar 0x000000010f56716a $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 122 39 searchBar 0x000000010f5670de $s9searchBar11AppDelegateC5$mainyyFZ + 46 40 searchBar 0x000000010f567209 main + 41 41 libdyld.dylib 0x00000001120e7bbd start + 1 ) libc++abi: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fd4f5707a70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key searchBar.' terminating with uncaught exception of type NSException CoreSimulator 757.5 - Device: iPhone SE (2nd generation) (C996D8AC-D4AE-4C0E-84B1-72F8D00DE55F) - Runtime: iOS 14.5 (18E182) - DeviceType: iPhone SE (2nd generation) (lldb)

How to troubleshoot that?

Thanks!

Welcome back to Forums, @theendofstart ! @fahim , please advise.

See the quoted section for the relevant error. It sounds as if you had set up a connection in your storyboard which is no longer there. Please check your storyboard and fix any issues highlighted when you check the Connections tab. The issues should have a tiny yellow triangle next to them …