title: iOS 10: Fatal Exception: NSInternalInconsistencyException Could not load NIB in bundle
body: <p>Crash reported on App store app with the exception: </p>
  
  <pre><code>`NSInternalInconsistencyException Could not load NIB in bundle...`
  </code></pre>
  
  <p>This crash is being reported since the last two months on iOS 10 devices and for multiple xib files.</p>
  
  <p>Details of one such instance:</p>
  
  <pre><code>Fatal Exception: NSInternalInconsistencyException
  Could not load NIB in bundle: 'NSBundle &lt;/var/containers/Bundle/Application/XXX/MyApp.app&gt; (loaded)' with name 'VideoView'`
  
  Fatal Exception: NSInternalInconsistencyException
  0  CoreFoundation                 0x18d7551b8 __exceptionPreprocess
  1  libobjc.A.dylib                0x18c18c55c objc_exception_throw
  2  CoreFoundation                 0x18d755100 -[NSException initWithCoder:]
  3  UIKit                          0x193b04fcc -[UINib instantiateWithOwner:options:]
  4  UIKit                          0x193965e14 -[UIViewController _loadViewFromNibNamed:bundle:]
  5  UIKit                          0x193737980 -[UIViewController loadView]
  6  UIKit                          0x1936035bc -[UIViewController loadViewIfRequired]
  7  UIKit                          0x1936034ec -[UIViewController view]
  8  MyApp                        0x100135580 -[VideoEventController addMediaPlaybackViewForChannel:andProgram:ofType:] (VideoEventController.m:113)
  </code></pre>
  
  <p>Code used to init view controller is:</p>
  
  <pre><code>self.videoViewCtrl = [[VideoViewController alloc] initWithNibName:@"VideoView" bundle:nil];
  [mediaView addSubview:self.videoViewCtrl.view]; //Crash trace points to this line in code
  </code></pre>
  
  <h3>Checklist:</h3>
  
  <ol>
  <li>Issue is not always reproducible for particular xib and hence no reference mistake or No spelling mistakes in xib name</li>
  <li>xib files are present in <code>Copy Bundle Resources</code></li>
  <li>xib files are linked to target in <code>Target Membership</code></li>
  <li>Location of xib files set to <code>Related to Group</code></li>
  </ol>
  
  <p>Code uses AutoLayout but not the size classes. Project has separate xibs for iPad and iPhone adhering to naming conventions.</p>
  
  <p>Did anyone face the same issue?
  What could be the reason for failure to load NIB?</p>