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
Related
When our iOS application is compiled on iOS 10 Developer Preview SDK, when launching one of the first view controllers of the application, the application crashes with this exception :
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIDeviceRGBColor countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x17adb5a0'
*** First throw call stack:
(0x23c9b91b 0x23436e17 0x24474da3 0x24474f5f 0x24447e81 0x24446f25 0x286c8a0b 0x2857baa3 0x2834effb 0x28214a1f 0x28214971 0x28aa9ec1 0x28560d01 0x285846e5 0x28586d65 0x28223541 0x28586ca9 0x28586f91 0x2830ddb9 0x28586fcf 0x1c13b3 0x1beb89 0x1bf927 0x244c6655 0x23c5e58f 0x23c5e1c1 0x23c5c00d 0x23bab229 0x23bab015 0x2519bac9 0x2827d189 0xe3b65 0x23853873)
libc++abi.dylib: terminating with uncaught exception of type NSException
In the code of our application, this selector of UIDeviceRGBColor is never called.
Does someone have the same problem ? Is it a bug of iOS 10 Beta ?
When compiled with iOS 10 Beta SDK, the problem occurs as well on devices running on iOS 10 Beta as on iOS 9.
The problem does not appear (not on iOS 10, not on iOS 9) when the application is compiled with iOS 9 SDK
Thank you.
Best regards.
In case your are using interface files like Xib and Nib for your views, refer to my answer in this question
Quoted from that question:
When I try to compile and run my project with the same configuration (XCode 8 beta 6, iOS 10 SDK), I encountered a similar issue, except that my error message was:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIDeviceRGBColor length]: unrecognized selector sent to instance 0x600000479280'
And I noticed that this issue only occurs when the view is init by using interface files, i.e. Xib and Nib. I solved this issue by:
Open your interface file, in the right panel, navigate to the File Inspector tab.
Change the attribute highlighted to "iOS 7.0 and Later" (or whatever iOS version later)
Then compile and run your project again, this should fix your issue, though I am not sure about the reason behind this.
iOS simulator (Version 8.1 550.3) constantly crashes when trying to change Hardware -> Device type.
From the console logs I can get this information but I am unsure what's exactly the setting that causes the crash. To be honest, I haven't changed much of the boilerplate settings yet.
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'LaunchScreen''
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 110.4 - Device: iPhone 6 - Runtime: iOS 8.1 (12B411) - DeviceType: iPhone 6
Any ideas?
EDIT: I have tried to clean the build folder and "Reset Content and Settings" of Simulator as suggested in similar questions. They didn't fix the problem.
You could try delete the content of the deriveddata folder:
~/Library/Developer/Xcode/DerivedData
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).
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.
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.