Invalid parameter not satisfying: nibNameMap != nil - ios

So I was following a tutorial on YouTube. https://www.youtube.com/watch?v=4ymz6i07DRM&feature=youtu.be
Ive done exactly what he did. And edited a few things because I'm using the latest Xcode 7.
When i run the application, the emulator opens, and launch screen appears. Immediately after that it goes back to the Xcode with an error in the console saying
*** Assertion failure in -[UIStoryboard
initWithBundle:storyboardFileName:identifierToNibNameMap:identifierToExternalStoryboardReferenceMap:designatedEntryPointIdentifier:],
/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3473.13/UIStoryboard.m:63
*** Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Invalid parameter not
satisfying: nibNameMap != nil'
Ive tried searching everywhere but I couldn't find a way to get rid of this. Please help if anyone knows how to solve this.

I see the tutorial you're using involves Storyboards.
Check that you have ticked "Is Initial View Controller" appropriately in the storyboard you're editing. If this is not checked then I'd expect the error you're seeing.

Related

Xcode error on running app with embedded framework

I am trying to create framework of my existing app which can be added to any other app as a module. In previous version of the app, i don't have any issues creating the framework and adding it to a demo app to test if it works. With newer version of the app, i am having an issue:
2017-04-21 13:59:02.238333-0400 XXX[8320:3762763] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(0x1868c2fd8 0x185324538 0x1867a4888 0x1010c3948 0x18c9f1f9c 0x18ca09a28 0x18cb8e2a0 0x18caa8c4c 0x18caa88b4 0x18caa8818 0x18c9ef158 0x189bdf274 0x189bd3de8 0x189bd3ca8 0x189b4f360 0x189b763c0 0x189b76e8c 0x1868709a0 0x18686e628 0x18686ea74 0x18679ed94 0x188208074 0x18ca57130 0x100084860 0x1857ad59c)
libc++abi.dylib: terminating with uncaught exception of type NSException
Any suggestions how to trace back the error inside the embedded framework?
It is happening only with the main View Controllers of the app, not on any off the second level View Controllers which are accessed from these main View Controllers.
I went through the code of the old version and the new version of the embedded framework, i don't see anything major to be different, checked Line by Line the whole code.
Any suggestions?
Thank you codealchimist for the solution, i figure out what i was missing in order to be able to debug it. The solution provided by him solves the problem to be able to debug the app & framework.

How to identify crash from XIB

I don't have any code implemented in view controller to set the font or attributedLabel. But I'm seeing crash with below reason.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[_SwiftValue pointSize]: unrecognized selector sent to instance 0x610001040ba0
There is another way of debugging issue. When app is crashed, check left panel and you will observe threads stack. In that find out Obj_exception_throw select that and use your logging area to run command po $arg1. This may give you the correct reason for crashing.
Or else, you can try using Application Unit tests for verifying all your IBOutlets and objects, loaded from NIBs.
You can select that xib and open it as source code.
Or search tho whole project to find that.

iOS uncaught exception isKindOfClass:NSArray.class

I have been getting the below error while running my project in xcode 6.1.1, Can any please help to know what workarounds can be done to remove the below error.
[ERROR] Uncaught Exception: Invalid parameter not satisfying: [arguments isKindOfClass:NSArray.class]
libc++abi.dylib: terminating with uncaught exception of type NSException
Thanks
djrecker
I see something similar to this once in a blue moon. Have you tried cleaning the project? (In the menu: Product->Clean
Unfortunately I don't know what causes it (and I've been too lazy to attempt tracking it down), but that always clears it up for me when I see it.

Does anyone know why this exception is being thrown in ios/cordova?

I'm working on a hybrid app with a custom InAppBrowser plugin and seemingly randomly an exception gets thrown.
I don't have any way to consistently reproduce this bug. I open that app and browser around and eventually when clicking my browser plugin's close button this will happen.
It happens within cordova after I call this line here
Where the exception actually happens
CordovaLib.xcodeproj/Classes/Commands/CDVCommandDelegateImpl.m
I have spent hours trying to find what is happening and I can't find any information online that helps. I've tried wrapping it in a try/catch to at least see if I can bypass it and that doesn't work either
The actual logged error is:
*** Assertion failure in -[DDWebKitOperation dealloc], /SourceCache/MobileDataDetectorsUI/MobileDataDetectorsUI-109.1/URLification/DDOperation.m:202
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Container should already be nil'
Does anyone know what could be causing this and how to fix it?
Thanks.
I've seen this crash in UIView's that use data detectors. In my case it was in a unit test, so the fix was to delete the data detector in the test.

iOS crash: missing images before playing video

I want to use MPMoviePlayerViewController to play a video, then it comes out a crash with following log:
*** Assertion failure in -[MPDetailSlider _setupControlsForStyle], /SourceCache/MediaPlayer_Sim/MobileMusicPlayer-1641.29/MPDetailSlider.m:708
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'missing images for style 2'
Did anyone meet this crash before, could you help?
Thanks in advance.
This solved the problem we had. Thanks for adding the edit. We had a category to UIImage that was called imageNamed:inBundle. Changing the name to our category method solved the problem.

Resources