Could not load NIB in bundle

Hi, I am facing a weird issue where my app crashes when loading a storyboard. It was working fine, and seems to crash all of a sudden without any changes done to the code. I have tried to clean the build, delete the app and try again to no avail. I also tried deleting the storyboard in question by removing just the reference and adding it again, still no change. I am stuck with the error Could not load NIB in bundle and am not sure how to proceed at this point. Any pointers to resolve this?

Stack trace:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/containers/Bundle/Application/9105DD59-18EE-4173-A3EB-C3896D922D0F/MyApp.app> (loaded)' with name '3ug-Hv-1MS-view-Qxp-U7-Q2L''

*** First throw call stack:

(0x193eeeb4c 0x1938105ac 0x193eeea30 0x1d2ff2244 0x1d2d3f6c4 0x1d2d3fa50 0x1d2d40180 0x1026c205c 0x1026c1f6c 0x1d2d40f10 0x1d2d41578 0x1d2d5fb98 0x1d2d3aee8 0x1026c4e28 0x1026c4eb8 0x1d2ff0844 0x1a0f02324 0x1a0f02050 0x1d2ff4b48 0x1a0f02324 0x1a0f02550 0x1a0f02050 0x1d2fef9d4 0x1d2ff2498 0x1d34dd498 0x1024ac080 0x1026675a8 0x10266673c 0x102665f1c 0x1026667a0 0x1042adf08 0x105630cfc 0x1056310f4 0x105631aa0 0x10563222c 0x10569ed34 0x105631ac8 0x10563222c 0x105660dd0 0x10566139c 0x105644c14 0x105614df0 0x10439b908 0x10439d1cc 0x1043aba88 0x1043ab6dc 0x193e62458 0x193e5c8f8 0x193e5b9c4 0x19702ab40 0x1d336b10c 0x1d3370570 0x10287f360 0x10381d1d0)

libc++abi: terminating with uncaught exception of type NSException

dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/containers/Bundle/Application/9105DD59-18EE-4173-A3EB-C3896D922D0F/MyApp.app> (loaded)' with name '3ug-Hv-1MS-view-Qxp-U7-Q2L''

terminating with uncaught exception of type NSException

Xcode : 13.1 tvOS: 15.4.1

Are you getting this error when running your app in Xcode? If so, you're getting the error because you're running a newer version of tvOS than Xcode 13.1 supports. Xcode 13.1 does not support any versions of tvOS newer than 15.2.

You have two options: update Xcode to Xcode 13.3 or 13.4 or downgrade to tvOS 15.2. I'm not sure if it's possible to downgrade to an older version of tvOS.

If you are still getting the error after updating Xcode, you will have to show your code to load the storyboard from the app bundle and show the layout of your app bundle for anyone to help you.

Are you sure the storyboard is in the app bundle? Is the storyboard in the app bundle location where the storyboard loading code is expecting it?

Could not load NIB in bundle
 
 
Q