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

后端 未结 6 590
轻奢々
轻奢々 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:10

    djibouti33's answer worked for me as well, but there is one key exception in his steps for the iPhone Simulator folder location. Below worked for me.

    1. Quit the iOS Simulator
    2. Download iPhone/iPod Touch Backup Extractor
    3. Run it, and select the last option "iOS Files"
    4. Create a folder on your desktop and extract all files to that folder
    5. When complete, go to your extract folder and navigate to Library/AddressBook
    6. Copy both files (AddressBook.sqlitedb and AddressBookImages.sqlitedb) to your clipboard
    7. Within Finder, select GO on the menu bar and Go To Folder "/user//library/" this is the only way to get to the hidden library folder (at leaset for Mac OS X 10.8)
    8. Go to Application Support/iPhone Simulator. there will be separate folders for each iOS version (5.0, 5.1, 6.0 etc).
    9. For each iOS version you run in simulator, you will have to copy the two files to each of the iOS Version folders. Ex: Application Support/iPhone Simulator/5.0/AddressBook/ if you run simulator for iOS 5.0.
    10. If run against multiple iOS versons, repeat for each.
    11. Run the Contacts application in iOS Simulator

    Hope this helps!

提交回复
热议问题