***Terminatingappduetouncaughtexception'NSInternalInconsistencyException',`entercodehere`reason:'Application windows are expected to have a root view controller at the end of application launch' ***First throw call stack: ( 0CoreFoundation0x0000000109377885__exceptionPreprocess+165 1libobjc.A.dylib0x0000000108df0df1objc_exception_throw+48 2CoreFoundation0x00000001093776ea+[NSExceptionraise:format:arguments:]+106 3Foundation0x0000000108a42bb1-[NSAssertionHandlerhandleFailureInMethod:object:file:lineNumber:description:]+198 4UIKit0x000000010760e350-[UIApplication_runWithMainScene:transitionContext:completion:]+2875 5UIKit0x000000010760b73f-[UIApplicationworkspaceDidEndTransaction:]+188 6FrontBoardServices0x000000010b87fd7bFrontBoardServices+163195 7FrontBoardServices0x000000010b880118FrontBoardServices+164120 8CoreFoundation0x00000001092a20f1__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+17 9CoreFoundation0x0000000109297eac__CFRunLoopDoSources0+556 10CoreFoundation0x0000000109297363__CFRunLoopRun+867 11CoreFoundation0x0000000109296d78CFRunLoopRunSpecific+488 12UIKit0x000000010760b091-[UIApplication_run]+402 13UIKit0x000000010760f79bUIApplicationMain+171 14bbwc0x00000001037a9998main+344 15libdyld.dylib0x000000010a45ca05libdyld.dylib+10757 16???0x00000000000000010x0+1 ) libc++abi.dylib:terminatingwithuncaughtexceptionoftypeNSException
Answer
From your error message:
1
Application windows are expected to have a root view controller attheendofapplicationlaunch
How old is this “old” project? If it’s more than a few years, do you still have: