title: ios app works on phone but not on simualator
body: <p>i have a sqlite file in the main bundle , i read the file with the code</p>
  
  <pre><code>_databasePath = [[NSBundle mainBundle] pathForResource:@"mainDB" ofType:@"db" inDirectory:@""];
  NSFileManager *filemgr = [NSFileManager defaultManager];
  
  if ([filemgr fileExistsAtPath: _databasePath ] == NO)
  {
      UIAlertView *av = [[UIAlertView alloc]initWithTitle:@"Error" message:@"Database Not Found" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
      [av show];
  }
  </code></pre>
  
  <p>i changed mainDB.db file, added the new one in xcode > Build phases > Copy Bundle Resources</p>
  
  <p>Now the app works on iPhone but not on simulator,
  On Simulator, file is there, sqlite3_open is OK, but sqlite3_pepare_v2 is not going through
  I have a feeling that somwhow the  old file is still stuck somewhere in the Simulator app, i Tried resetting Simulator but no luck.
  Any Suggestions ?</p>