title: Could not load NIB in bundle - Bundle not yet loaded
body: <p>Just hit a problem where I need to work with a external framework and bundle.</p>
  
  <p>While the frame is imported and its functions can be called just fine, one of it's methods tries to load a nib from the accompanying bundle, which ends in a <code>NSInternalInconsistencyException</code> for the reason </p>
  
  <blockquote>
    <p>"Could not load NIB in bundle".</p>
  </blockquote>
  
  <p>I noticed that while the bundle is in the Copy Bundle Resources and can be found by calling <code>Bundle.allBundles</code>, the error message says the bundle is <code>"not yet loaded"</code>. Is there something I was supposed to do so the bundle could be loaded beforehand?  </p>
  
  <p><strong>Update</strong>: I did not provide the related code earlier because the error happened as a colateral effect of a framework call, so I don't know exactly how the nib is "loaded".
  The code itself is this:</p>
  
  <pre><code>if let request = AUTRequest.init(transactionType: .debitGeneric) {
      AUTCTFClient.executeTransaction(with: request, from: self) { (_response) in
         if let response = _response {
             print(response)
         }
      }
  }
  </code></pre>
  
  <p><code>self</code> is the current viewcontroller and the error happens after the <code>executeTransaction</code> call but before the response block execution.</p>
  
  <p><strong>Is this somehow related to the Bundle not being loaded or is the framework at fault himself?</strong></p>