views:

537

answers:

2

Is there a way to import contacts automatically from my Mac OS X Address Book into the iPhone Simulator Contacts app? Or vCards or anything like that? I'm building an app that displays contacts in various ways and I'd like to have a way to have lots of contacts without typing them all in myself.

+2  A: 

Probably not directly, but it you have a real phone populated with contacts you could retrieve the file /mobile/Library/AddressBook/AddressBook.sqlitedb and copy it to ~/Library/Application Support/iPhone Simulator/User/Library/AddressBook/AddressBook.sqlitedb on your dev machine.

Andrew Medico
A: 

I attempted this and there seems to be no /mobile directory on my Mac. How do I access this? Thanks

Steve Fogel
it's on your iphone not on your mac.
sbwoodside