title: SQlite on iPhone READONLY
body: <p>I use the following code to only read the database....</p>
  
  <pre><code>NSString *databasePath = [[[NSBundle mainBundle] resourcePath]  stringByAppendingPathComponent:@"lookup.db"];
  
      if(sqlite3_open([databasePath UTF8String], &amp;database) == SQLITE_OK) {
  </code></pre>
  
  <p>I get the error message below...</p>
  
  <pre><code>Mar 30 12:13:09 unknown sandboxd[418] &lt;Notice&gt;: LittleApp(129) deny file-write-data /private/var/mobile/Applications/E2112718-D0AB-46D4-8914-CC65EF262C0C/LittleApp.app/lookup.db
  </code></pre>
  
  <p>Now I know that the DB is in the mainBundle and if I want read/write access then to copy it across to the users documents but I only need read access and I have also had issues with people's phone's not copying across the DB properly, there are over 700,000 users of this app and it does show up!</p>
  
  <p>So I suppose the question is, how can I suppress this notice by setting the query/open to Read Only?</p>