title: Cannot manually load xib from a view controller?
body: <p>I'm making an app using the <a href="https://confluence.medu.com/download/attachments/28148763/Blackboard_SDK_Basic_Installer_5.0.pkg.zip?version=1&amp;modificationDate=1340732652648" rel="nofollow noreferrer">Blackboard SDK.</a> It would really help if you could download the SDK and see if you have the same errors.
  Here is a link to the <a href="https://confluence.medu.com/download/attachments/28148763/Welcome.pdf?version=1&amp;modificationDate=1340732748635" rel="nofollow noreferrer">instructions</a>, in case anyone wants to follow along -- not too many pages.</p>
  
  <p>The instructions say </p>
  
  <p>"Because the module is running within the launcher application, the MainWindow.xib file is the one for the launcher. Therefore, the module cannot have its own MainWindow.xib file, as it would create a conflict. </p>
  
  <p>Further, NO views will be loaded automatically from a nib file when the module first launches. Therefore, all views that are loaded from nibs must be loaded manually in your code, and all nib files must follow the same naming conventions and be included in your resources files. </p>
  
  <p>Originally, I tried to  instantiate a view controller like so</p>
  
  <pre><code>   testVC = [[LMU_LAL_ViewControllerTest alloc] initWithNibName:@"LMU_LAL_ViewControllerTest" bundle:nil];
  </code></pre>
  
  <p>However, it caused a crash. The error message I received was </p>
  
  <pre><code>Could not load NIB in bundle: 'NSBundle &lt;/Users/mahir/Library/Application Support/iPhone Simulator/6.0/Applications/2ABAAF9D-5141-41B2-8EFB-51C3E047AD67/testLauncher.app&gt; (loaded)' with name 'LMU_LAL_ViewControllerTest
  </code></pre>
  
  <p>Someone said the problem could be solved by downloading an earlier version of xcode, but that hasn't helped yet. Also, I changed the method from <code>initWithNibName:bundle:</code> to <code>init</code> and added this to the view controller subclass</p>
  
  <pre><code>- (void)loadView
  {
  [super loadView];
  
  UINib *nib = [UINib nibWithNibName:@"LMU_LAL_ViewControllerTest" bundle:nil];
  [nib instantiateWithOwner:self options:nil];
  } 
  </code></pre>
  
  <p>Again, I receive a similar error, but this time on the line
  <code>[nib instantiateWithOwner:self options:nil]</code></p>
  
  <p>What am I doing wrong??</p>
  
  <p>EDIT: </p>
  
  <p>Here is an excerpt from what someone from the support team gave me. </p>
  
  <blockquote>
    <p>All the resources used by your module, including any .xib files, MUST
    be included in the project of the LAUNCHER. This means that in the
    project that you are actually running to test the module, the launcher
    project, all of the resource files need to be included inside that
    project.  An easy way to test if this is the case is to find your .xib
    files by looking on the left hand bar of Xcode in the launcher
    project.  This will ensure that the resource files are actually
    getting included in the project. I have included a screenshot of what
    it should look like in the launcher project for Xcode.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/wuAVI.png" alt="enter image description here"></p>
  
  <p>This is what I currently have</p>
  
  <p><img src="https://i.stack.imgur.com/DkptH.png" alt="enter image description here"></p>