Could not load NIB iOs - ios

That is the error displayed in the console, only if I build my app in a real device.
2015-02-21 16:56:50.997 HiStatus[164:60b] NSMainNibFile and UIMainStoryboardFile are both set. NSMainNibFile ignored.
2015-02-21 16:56:53.064 HiStatus[164:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/2C26B1F0-B064-49DF-85E3-AEEE404E8A38/Example.app> (loaded)' with name 'zx4-Jk-sTp-view-OsP-Nr-lO4' and directory 'Main.storyboardc''
*** First throw call stack:
(0x307bcfd3 0x3b035ccf 0x307bcf15 0x33347d75 0x332a062b 0x330fcbed 0x32fdd30d 0x32fdd289 0x33086937 0x330c34b3 0x330c1deb 0x330c0e55 0x13ec8c 0x13ed4c 0x3119c163 0x307881b7 0x30787dcf 0x3078616b 0x306f0f0f 0x306f0cf3 0x35649663 0x3303c16d 0x13b7bc 0x13b8d8 0x3b542ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
After a Xcode restart it have add to the console that error:
2015-02-21 17:11:51.839 HiStatus[183:60b] NSMainNibFile and UIMainStoryboardFile are both set. NSMainNibFile ignored.
/private/var/mobile/Applications/5C841D54-3A68-40F7-BA87-32CBE8EDAF78/Library/Caches/Federico-Malagoni.HiStatus/Cache.db-wal: Too many open files
/private/var/mobile/Applications/5C841D54-3A68-40F7-BA87-32CBE8EDAF78/Library/Caches//Cache.db-journal: Too many open files
/private/var/mobile/Applications/5C841D54-3A68-40F7-BA87-32CBE8EDAF78/Library/Caches//Cache.db-shm: Too many open files
2015-02-21 17:11:53.866 HiStatus[183:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/5C841D54-3A68-40F7-BA87-32CBE8EDAF78/HiStatus.app> (loaded)' with name 'zx4-Jk-sTp-view-OsP-Nr-lO4' and directory 'Main.storyboardc''
*** First throw call stack:
(0x307bcfd3 0x3b035ccf 0x307bcf15 0x33347d75 0x332a062b 0x330fcbed 0x32fdd30d 0x32fdd289 0x33086937 0x330c34b3 0x330c1deb 0x330c0e55 0x16dc8c 0x16dd4c 0x3119c163 0x307881b7 0x30787dcf 0x3078616b 0x306f0f0f 0x306f0cf3 0x35649663 0x3303c16d 0x16a7bc 0x16a8d8 0x3b542ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Info
Info.plist
After Edit 2 that is the error :
2015-02-21 17:33:07.820 HiStatus[196:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'There doesn't seem to be a valid compiled storyboard at path '/var/mobile/Applications/10C6A1F4-BAE9-4317-8CEA-CB419235A62C/HiStatus.app/Main.storyboardc''
*** First throw call stack:
(0x307bcfd3 0x3b035ccf 0x334aaa71 0x18545c 0x180880 0x180d4c 0x3119c163 0x307881b7 0x30787dcf 0x3078616b 0x306f0f0f 0x306f0cf3 0x35649663 0x3303c16d 0x17d7bc 0x17d8d8 0x3b542ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException

Did you try performing Clean on your project and removing an app from device?
Delete an app from your device
Perform Clean ( Cmd + Shift + K by default)
Install it again

Some code or screenshot would help but make sure you do not have a typo in it. Maybe you renamed some files which are marked as red now ?
EDIT:
Your plist looks broken to me. You should remove the entry "Main Nib file..." since you are already specifying a main storyboard in there.
Also the name in the error message is really weird: zx4-Jk-sTp-view-OsP-Nr-lO4.
Maybe a screenshot of your project setup and the code how you try to load the nib could solve the puzzle.
EDIT 2
Ok try these steps:
Locate LauncScreen.xib on your disk
Remove the red LaunchScreen.xib from your project and re-add the file to your project
In Targets -> Build Phases Make sure all .xib files are added to Copy Bundle Resources, if not add them
Remove "Main Nib file ..." from your .plist

Related

NSException with launching main file

I am a new programmer for Swift. I followed a tutorial to get a little setup, but then most of the other coding I did myself. I am a long time python programmer, and I am a little lost on the errors I am getting. I removed a few files from the project for IP reasons, but I cannot get the program even started on my phone. The project is located [here][1]. I cannot seem to figure out the startup sequence for xcode 13.
I am using XCode 13, Swift 4.2, and several other items. Here is the error I am getting when I push the compiled code to my phone.
2022-02-15 15:43:03.321402-0600 FirebaseStarterApp[3090:1225786] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/containers/Bundle/Application/38489EE8-9C77-4334-83DD-C0D1798CBCEC/FirebaseStarterApp.app> (loaded)' with name 'MainWindow.xib''
*** First throw call stack:
(0x1810690fc 0x1998b5d64 0x1810c0230 0x1839b2260 0x184061ea8 0x1843cb21c 0x1835adba0 0x1839722a8 0x1837cf940 0x183627af0 0x183753438 0x183874104 0x183ab52f8 0x183a40818 0x1836288f4 0x1836e9160 0x18362a804 0x183715448 0x183b9d5cc 0x18365913c 0x18369ca50 0x1837d486c 0x183713708 0x192ccc8d4 0x192cf2824 0x192cad06c 0x192cae6ac 0x106c1e3b4 0x106c21e70 0x192cae9c4 0x192cadd8c 0x192cb2414 0x18108b0d0 0x18109bd90 0x180fd6104 0x180fdb8a4 0x180fef468 0x19cb8f38c 0x1839925d0 0x183710f74 0x104bda70c 0x105365aa4)
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/38489EE8-9C77-4334-83DD-C0D1798CBCEC/FirebaseStarterApp.app> (loaded)' with name 'MainWindow.xib''
terminating with uncaught exception of type NSException
Any help is greatly appreciated, I cannot for the life of me figure out why it is not working.
Fixed!
Info.plist entry for main nib was not needed. Removed and it worked.

Exception while running the app for the first time

I am getting the following exception
2017-06-13 10:55:13.656 myappname[11235:3769332] * Terminating app
due to uncaught exception 'NSInvalidArgumentException', reason: 'Could
not find a storyboard named 'Main~ipad' in bundle NSBundle
(loaded)'
* First throw call stack: (0x24fcb91b 0x24766e17 0x29c4bf71 0x297e82ab 0x295bb445 0x297e714b 0x297fb83d 0x297e47b3 0x2666ec07
0x2666eab9 0x2666edb9 0x24f8ddff 0x24f8d9ed 0x24f8bd5b 0x24edb229
0x24edb015 0x295b4c3d 0x295af189 0x140a2d 0x24b83873) libc++abi.dylib:
terminating with uncaught exception of type NSException
when I run my app for the first time in iPad and when I run the same code again the code is working fine. I have 2 different storyboard for iPhone and iPad the Main~ipad file is there in app bundle and I see the file in copy bundle resources. Please help me to fix this
Thanks in Advance

iPhone Project crash on start

I am trying to run my application and suddenly i get this error:
2014-11-05 12:12:54.972 [238:9512] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ''
*** First throw call stack:
(0x235a7c1f 0x30dafc8b 0x235a7b65 0x299b61 0x299adf 0x322ec7 0x13b50d 0x242b6d6f 0x2356e377 0x2356d787 0x2356bded 0x234ba211 0x234ba023 0x2a86d0a9 0x26ac61d1 0x102bff 0x102b88)
libc++abi.dylib: terminating with uncaught exception of type NSException
It's on the start of the application,
i get this error without changing any code in my project, any idea what can cause this?
To resolve the NSException crashes, you have to remove all the warnings of .xib/.storyboard files. Cross check the IBOutlets warnings and you can see a cross (X) icon related to the yellow warnings to remove it.

BugClipper integration issue

I have trouble integrating BugClipper into my project.
I followed the integration instructions mentioned on their website
But, the when I continue with my build it throws the following error -
Cannot find executable for CFBundle/CFPlugIn 0x17eaf2f0 (not loaded)
2014-07-24 12:34:15.457 BugClipper[371:60b] -[SMOCInvokerView smoc_width]: unrecognized selector sent to instance 0x17eae380
2014-07-24 12:34:15.459 BugClipper[371:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SMOCInvokerView smoc_width]: unrecognized selector sent to instance 0x17eae380'
*** First throw call stack:
(0x2eafce83 0x391a66c7 0x2eb007b7 0x2eaff0af 0x2ea4ddc8 0x10e8bf 0x10e60f 0x3968b0af 0x3968bcdb 0x10e5e7 0x105861 0xea8e5 0x312f1aad 0x312f14f3 0x312ebb41 0x31286a07 0x31285cfd 0x312eb321 0x3373876d 0x33738357 0x2eac7777 0x2eac7713 0x2eac5edf 0x2ea30471 0x2ea30253 0x312ea5c3 0x312e5845 0xeaae5 0x3969fab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
it seems the category is not loaded, better go to Build Settings of your Target App, and search for Other Linker Flag and add one line in there, -ObjC -all_load
This should definitely solve your problem.
Cheers

Could Not Load NiB in bundle, tried EVERYTHING but still get this error

I tried to create a custom UITableViewCell, but I started getting the following error:
2013-06-25 03:56:53.435 Ma-Goal[3372:19d03] *** Terminating app due to uncaught
exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle:
'NSBundle </Users/Library/Application Support/iPhone
Simulator/6.1/Applications/7BAEEE5A-535C-40AB-93F2-FF4B34CF7644/APP.app> (loaded)'
with name 'p4f-GK-Fuy-view-CLd-MQ-Lha''
*** First throw call stack:
(0x24cd012 0x22f2e7e 0x24ccdeb 0x1452ef9 0x13177e7 0x1317dc8 0x146628e 0x6f650
0x1317ff8 0x1318232 0x146605b 0x77b0 0x1453a36 0x1562a02 0x15620e5 0x14535c8 0x1453d2c
0x1562a02 0x1562418 0x15620e5 0x14529f0 0x167e54a 0x167e6c3 0x123671e 0x12369a2
0x1235876 0x1246cb5 0x1247beb 0x1239698 0x2e83df9 0x2e83ad0 0x2442bf5 0x2442962
0x2473bb6 0x2472f44 0x2472e1b 0x123517a 0x1236ffc 0x255d 0x2485)
libc++abi.dylib: terminate called throwing an exception
I read all the other questions and answers about this problem, and I even tried each and every suggested solution, none of it worked.
I checked the targets were matched and the copy bundle resources had the files included, I reseted and cleaned all of XCode settings and iPhone Simulator settings, I removed references to the .xib file that gave me the problem, and eventually, I even deleted it.
I completely stopped using the UITableViewCell file in my UIViewController that caused the problem, but I still get this error. My code is exactly the way it was before I added that dreaded .xib file for the UITableViewCell, but this error won't go away. What am I doing wrong??? Any help is greatly appreciated!!

Resources