IOS5 - Could not load NIB in bundle - ios

I have an app in the appstore which works fine on any iOS < 5.0.
But in iOS5 my app won't launch, the error I get is:
Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'Could not load NIB in bundle: 'NSBundle
</var/mobile/Applications/****/***.app> (loaded)' with name 'MainWindow''
Does anyone know how to solve this error?
Update
The app seems to work on the iPad 2 but not on the iPad 1
(now I am even more confused)

The problem is probably that "MainWindow.nib" does not exist in the builded app. Either your xib is not named "MainWindow.xib" or your xib is not included into your project. YOu can check this by looking into the .app-directory on your phone or simulator.
I've got the same error yesterday and the problem was that I had a xib-file which was accidentally assigned a localization to. So maybe you have also added a localization to it then just remove it or provide a default one.

Related

Storyboard error with Target Membership(GREYED OUT)

I recently renamed my project and a variety of errors came up relating to the paths that Xcode was trying to use to access my files.
This was most likely due to an ill attempt at renaming the project so I retracted my efforts and decided I would just change the name of the App the customers see. Anyways a peculiar error has risen up because of this.
When I build the app it crashes with a THREAD 1 SIGABRT error. Here is the output of the console.
Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: 'Could not find a storyboard
named 'Main' in bundle NSBundle
(loaded)'
*** First throw call stack: (0x18b2341c0 0x189c6c55c 0x191835bd0 0x191306b48 0x1910ef0a8 0x1913057c0 0x19131a080 0x1913028c4
0x18cdd58bc 0x18cdd5728 0x18cdd5ad0 0x18b1e2278 0x18b1e1bc0
0x18b1df7c0 0x18b10e048 0x1910e85dc 0x1910e3360 0x100037bb8
0x18a0f05b8) libc++abi.dylib: terminating with uncaught exception of
type NSException
I have cleaned my project several times as well as doubled check the plist to ensure the string was correct. Here is a link to a similar question whose answer I tried.
Could not find a storyboard named 'Main' in bundle
I found my problem but still am not sure how to fix it. In my main storyboard under The File Inspector my TARGET MEMBERSHIP for the App is GREYED OUT but the Test and UITest version of it are not.
I have tried a variety of build with different checks as well as deleted the app off of my physical device and cleaned the project and tried again. I even deleted the reference to the Main.storyboard and re-added by dragging from a pane like in one of the answers on the link provided and it lets me select all the Target Membership's but when I open the File inspector only the tests are selected on not the main top option. Can anyone help me out on this?
It would be greatly appreciated, I have been at it for hours and I am sure it is something small I am missing.
have you tried to verify the your info.plist?
you can also create a new storyboard (copy all viewController in Main.storyboard) and then in "Main storyboard file base name" key of your plist set the value of your new storyboard name.
Or check this Build Settings:
check also the target associated it.

How to run iPhone application on iPad Mini in Xcode 7

I am trying to run iPhone app in Xcode on iPad mini - as it support iPhone compatibility app. This works on iPad 3 but not on iPad mini where I got this error from xCode:
2016-04-08 11:27:52.190 My app [6365:942940] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/mobile/Containers/Bundle/Application/path/to/my/app.app> (loaded)' with name 'SomeController' and directory 'Main.storyboardc''
*** First throw call stack:
(0x186186084 0x196b340e4 0x186185fc4 0x18ad10b80 0x18aecfce0 0x18ab94294 0x18ab93440 0x18ab91c00 0x18e365640 0x18613e360 0x18613d468 0x18613b668 0x186069664 0x18a97398c 0x18a96e984 0x100094ab4 0x1971a2a08)
libc++abi.dylib: terminating with uncaught exception of type NSException
I didn't find any informations about this problem. Is there workaround how to run iPhone app with Xcode on iPad mini?
If I use universal mode for app running its working properly but I want to restrict for iPhone only.
Thanks
Marekkk
Try check out the xib file in the file inspector. Mayby the app is not supported by iPad mini?
you got a typo in 'Main.storyboardc'
and that is not device-specific

When adding iPhone nib file SIGBRT error occurs

I have developed a Web Browser app called iBrowse for iPad. Now when I try to add iPhone support with a xib file I get a SIGBRT error in the Simulator.
The app uses xib files as the main page and I have had the iPad xib file since I created the app and it works fine. Because I want iPhone support I added a new iPhone xib file (with .h and .m files). When I make the Application Type Universal and select the xib file from the dropdown I get the following error when I launch the app for iPhone.
2014-01-07 14:03:35.262 iBrowse[2207:907] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x753e440> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(0x1c95012 0x10d2e7e 0x1d1dfb1 0xb7ee41 0xb005f8 0xb000e7 0xb2ab58 0x234019 0x10e6663 0x1c9045a 0x232b1c 0x2348da 0x1668b 0x169a2 0x15876 0x26cb5 0x27beb 0x19698 0x1bf0df9 0x1bf0ad0 0x1c0abf5 0x1c0a962 0x1c3bbb6 0x1c3af44 0x1c3ae1b 0x1517a 0x16ffc 0x2395 0x22d5)
libc++abi.dylib: terminate called throwing an exception
(lldb)
as well as a Thread 1: SIGBRT error
The files only include the default content and I have not added anything to them. I have also had this error when declaring the xib file to use for iPad so I let it chose the only xib file that existed. Now with a separate one for iPhone I have to explicitly declare the xib file to use otherwise it uses the iPad one which does not fit on the screen.
Right Click on the xib file to see referencing Outlets. Turned-out some of the control that still referencing and older name and causing this error to happen.

NSInvalidUnarchiveOperationException (NSLayoutConstraint) iOS5

I'm getting a NSInvalidUnarchiveOperationException on the iPhone 5.1 Simulator.
*** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException',
reason: 'Could not instantiate class named NSLayoutConstraint'
Everything works fine on iOS6 and on the iPad 5.1 Simulator.
The thing is I'm not using NSLayoutConstraints in my Project nor does it contain any Nib-Files!
Any sugestions?
Thanks in advance!
I don't know what it was, but uninstalling and reinstalling the app did the trick (a "clean" didn't by the way).

InternalInsonsistencyException in ios sdk4.3

Since I started using the IOS SDK4.3; not only have I experienced frequent crashes, I have also come across this very bad crash when I want to debug some apps:
Error Log:
"Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'MainWindow''"
I have once escaped this horror by selecting a lower iPhone simulator version, but not all the time.
What could actually cause this?
Probably, MainWindow.xib no longer exists in your project.

Resources