On 21 Nov 2012, at 4:06pm, Donald Steele <[email protected]> wrote:

> I am not trying to access it on a iDevice. I am trying to access it on my Mac.
> 
> How do I build the database and then give the iOS app access?

You can use any SQLite tools available to build the database.  I recommend the 
SQLite shell tool which is already loaded on your Mac.  You should be able to 
have it make you a database just by issuing a command something like

sqlite3 ~/Desktop/mydatabase.sqlite

then using SQL commands to create whatever tables and data you need, and make 
sure your SELECTs work the way you think they should.  Documentation here:

<http://www.sqlite.org/sqlite.html>

Once you have made your database file, you need to use Xcode to add a copy of 
it to the app's bundle.  You will find examples of this in the tutorials for 
making iApps.  They show you how to add an arbitrary file to an iApp project, 
and what routines to use in your iApp to find the path of a file in the bundle.

Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to