Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing AddressBook data into the iPhone Simulator

Tags:

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 /Library/Application Support/iPhone Simulator/User/Library/AddressBook.

like image 478
chaostheory Avatar asked May 23 '09 08:05

chaostheory


People also ask

Where does the iPhone simulator store its data?

type: ~/Library/Application Support/iPhone Simulator.

How do I access IOS simulator files?

# Open application folder in Finder First, copy the path to the app folder from Xcode console. Then open Finder, click on Go -> Go to Folder and paste the application directory path. You will now be able to browse all the files in your application folder.


1 Answers

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
like image 148
djibouti33 Avatar answered Sep 21 '22 18:09

djibouti33