Importing AddressBook data into the iPhone Simulator

前端 未结 7 2097
自闭症患者
自闭症患者 2020-12-13 05:28

Is there an easy way to import AddressBook data into the iPhone Simulator?

Right now my only assumption is to manually modify the SQLite files found in the /Libr

7条回答
  •  醉话见心
    2020-12-13 05:47

    I was looking for the exact solution, and this worked perfectly for me on a non-jailbroken phone. It works by extracting your iPhone address book from an unencrypted backup.

    • Quit the iOS Simulator
    • Download iPhone/iPod Touch Backup Extractor
    • Run it, and select the last option "iOS Files"
    • Create a folder on your desktop and extract all files to that folder
    • When complete, go to your extract folder and navigate to Library/AddressBook
    • Copy both files (AddressBook.sqlitedb and AddressBookImages.sqlitedb) to: ~/Library/Application Support/iPhone Simulator/{SDK}/Library/AddressBook
    • Run the Contacts application in iOS Simulator

提交回复
热议问题