Could Not Load Nib in Bundle

NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle

This error can occur when you rename files outside of XCode.
To solve it you can just remove the files from your project (Right Click - Delete and "Remove Reference").

Then after you can re-import the files in your project and everything will be OK.

present() method throws 'Could not load NIB in bundle: 'NSBundle

You gave away the biggest hint for what's wrong when you said you are using a storyboard and not a XIB (previously known as a NIB) file.

Try replacing:

let evc = ExerciseViewController(nibName: "ExerciseViewController", bundle: nil)

with

let evc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("ExerciseViewController") as ExerciseViewController

Here is a tutorial that might help.

NSInternalInconsistencyException Could not load nib in bundle

It looks like you're trying to instantiate a nib called ThemePickerController.nib and it isn't present. Is the nib included as a project member?



Related Topics



Leave a reply



Submit