How to import contacts from Mac OS X AddressBook into iPhone Simulator

后端 未结 6 584
轻奢々
轻奢々 2021-02-06 01:51

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

6条回答
  •  有刺的猬
    2021-02-06 02:17

    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.

提交回复
热议问题