Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calendar on iPhone simulator

How can I access the calendar on the iPhone simulator?

I'm using Titanium to make an app, and I've created an event. It should have worked, and now I want to test if it is saved correctly in the calendar.

Can anyone tell me how I can open it?

Thanks

Tjekkles

like image 368
Tjekkles Avatar asked Jan 20 '23 05:01

Tjekkles


1 Answers

Update for Lion: To get to the User Library folder, follow these instructions.

There doesn't seem to be any way to access the calendar from the simulator, unfortunately.

However, as I found in this thread, you can find the SQLLite3 database that the simulator uses and get the data from the calendar there using your mac. If you aren't familiar with SQLLite3 databases, I'd recommend using SQLite database browser to look at the file.

EDIT: It seems that the location of the Calendar.sqlitedb file depends on the version of the simulator you are using.

When your simulator is open, go to the menu and click Hardware and then mouse over Version. You should see a check mark next to the device version you are using (for me, it was 4.0.2). Now go to /Users/<username>/Library/Application Support/iPhone Simulator/<that version number>/Library/Calendar/, and you should be able to find the Calendar.sqlitedb file.

like image 185
mopsled Avatar answered Jan 27 '23 20:01

mopsled