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.
Related
My iOS application is working fine in iOS 10 and newer version. But when I was trying to run my app on iPad mini with iOS version 9.3.2 then Application is crashing.
I am trying to push a view controller and I am using storyboard for all view controllers.
This is my code for push view controller:
self.performSegue(withIdentifier: "PaymentViewcontrolller", sender: self)
I am getting this is error in console and application is crashing:
2018-10-26 16:21:17.223 Food[592:68727] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:'
*** First throw call stack:
(0x2447391b 0x23c0ee17 0x24473861 0x28fbb15f 0x28fbadf5 0x28ea3477 0x28ea3b01 0x28fbb10f 0x28fbb0a1 0x28fbadf5 0x28ea2a0b 0x28d55aa3 0x28b28ffb 0x289eea1f 0x28a06e71 0x28b9d1e5 0x28aab4a7 0x28aab1b5 0x28aab12b 0x289eaa73 0x26a82bcd 0x26a7e375 0x26a7e209 0x26a7d6d1 0x26a7d3a5 0x26a76b2b 0x244356c9 0x244339cd 0x24433dff 0x24383229 0x24383015 0x25973ac9 0x28a57189 0x3d8008 0x2402b873)
libc++abi.dylib: terminating with uncaught exception of type NSException
My Xcode version is 9.4.1 and deployment target is iOS 9.2.
I am not able to figure out what is the issue. Already spent whole day for this.
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
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
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.
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