Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the Xcode provide the iCal in the simulator?

I want to ask a question about the iPhone application. I use the Xcode to write the iPhone application about the calendar and the simulator is 3.1.3.

However, I cannot see the Calendar app. (The simulator only displays the 1. Photos and 2. Settings). Do I need to set something or download from the Internet in order to see the Calendar app? Thank you very much.

like image 874
Questions Avatar asked Aug 10 '10 04:08

Questions


People also ask

Does simulator come with Xcode?

The simulator allows you to prototype and test builds of your app during the development process. Simulators come as a part of the Xcode tool. It runs on Mac and simulating an iPhone, iPad, Apple TV, or Apple Watch environment.

Do I need Xcode for iOS simulator?

Launching the Simulator, though, always requires opening Xcode and going to Developer Tools. Because the Simulator. app is embedded within the Xcode app bundle, apps like LaunchBar won't find it to index it.

Where does the iPhone simulator store its data?

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

How do I connect my iPhone to Xcode simulator?

Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen. Plug your iPhone into your computer. You can select your device from the top of the list. Unlock your device and (⌘R) run the application.


3 Answers

Unfortunatelly the iPhone simulator does not come with the calendar app. However you can still store and retrieve data from the calendar database, which is part of the system databases and will be stored at the iOSUserDomain. See Using iPhone Simulator for more info.

like image 171
Daniel Avatar answered Sep 29 '22 16:09

Daniel


Even though this question is old, I found myself asking it last week and solved my issues by running the simple sample app for EKEventKitUI. It let me add events in the calendar db and see the events my app was adding/editing.

like image 27
Janene Pappas Avatar answered Sep 29 '22 18:09

Janene Pappas


As mentioned earlier, iPhone simulator does not come with the Calendar app.

The data is still stored at the calendar database which should be located at something like:

/Library/Application Support/iPhone Simulator/3.1.3/Library/Calendar/Calendar.sqlitedb

But this is an encrypted file and cannot be opened with an sqlite DB application like MesaSQLite.

A simple hack seems to be to run the sample app for the EKEventKitUI framework from the iOS Developer Library and use it to see (and edit) the events list. Current link to download it is here.

N.B. this is a consolidated answer from various other answers found on SO and outside. Credit to everyone else who answers I drew on for this.

like image 39
codeburn Avatar answered Sep 29 '22 18:09

codeburn