Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

saqibjaan

macrumors member
Original poster
Feb 1, 2012
48
1
Lahore
I have added 200 contacts in Simulator using Objective-C. Now, I want to access contacts database file (SQLite file). What is the path of that file ? I am developing for jailbreak iPhone.

Thanks in advance.
 
Last edited:
Thanks for your reply.
But when I try to open AddressBook.sqlitedb file, following error occurred:

"SQL error: file is encrypted or is not a database"

I am trying to open the file in MAC terminal using
"sqlite3 AddressBook.sqlitedb" command.
 
Thanks for your reply.
But when I try to open AddressBook.sqlitedb file, following error occurred:

"SQL error: file is encrypted or is not a database"

I am trying to open the file in MAC terminal using
"sqlite3 AddressBook.sqlitedb" command.

That's strange. I just tried it and it is able to open up the database for me. Are you accessing it from your own user library? Can you check and post the file permissions for AddressBook.sqlitedb?
 
I have solved the problem by using ABAddressBook framework.

Thanks everyone for valuable comments and answers.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.