1

In a program , I need to let user to save data to a SQLite database ( a "Save as " Option ). I did it by using NSTask for sending a command like: "sqlite3 ./mydatbase.db" as a Terminal command . It works fine on my own Mac, but not on others' without Xcode installed ( As SQLite installs with Xcode ). Here is the problem: Is there any way to make a new Database ( not a new Table) programmatically for systems without SQLite ? Any answer appreciated.

Aug
  • 595
  • 9
  • 22

1 Answers1

2

When you try to open a database file that does not exist, SQLite creates it automatically.

CL.
  • 173,858
  • 17
  • 217
  • 259