Reputation: 8631
My app is crashing, but it I can't seem to locate the problem.
After startup, I call performSegueWithIdentifier
to move the user to the right ViewController.
This works, except on iPads running iOS 8 (specifically it seems to happen on 8.3, 8.4 and 8.4.1 so far). Newer iPads and iPhones are no problem.
The app has a SplitViewController (which is created when calling the performSegueWithIdentifier
mentioned earlier), so perhaps this has something to do with the problem, since it's displayed differently on iPads than on iPhones.
The exact error is:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'I9T-iy-59z-view-exp-vQ-8nn'
Upvotes: 0
Views: 639
Reputation: 4209
This may be considered an iOS bug. I couldn't find any Open Radar or bug report, but have a look to this questions:
1 Terminating app: Could not load NIB in bundle: 'NSBundle ...' with name '7bK-jq-Zjz-view-r7i-6Z-zg0'
2 Could not load NIB in bundle: 'NSBundle when using storyboarding
So I would suggest to insert a UINavigationController
between the UITabBarController
and each of the UITableViewController
child views. as this answer: https://stackoverflow.com/a/31196701/821053
Alternatively, you can get rid of the storyboard segues from Master & Detail and add them programmatically:
let master = self.storyboard?.instantiateViewControllerWithIdentifier("SplitMasterController")
let detail = self.storyboard?.instantiateViewControllerWithIdentifier("SplitDetailController")
self.viewControllers = [master!, detail!]
Upvotes: 1