title: [NSBundle mainBundle]pathForResource returns nil
body: <p>I'm trying to connect my app to SQLite database but I get messages that tell me that the database is created but there are no tables.</p>
  
  <p>I debugged the program and discovered that
  <code>[[NSBundle mainBundle] pathForResource]</code> always returns <code>nil</code></p>
  
  <pre><code>NSString* file = [[NSBundle mainBundle]pathForResource:_databaseName ofType:_databaseType];
  </code></pre>
  
  <p>Why is this happening?
  Please help me!</p>