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.
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.
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.
type: ~/Library/Application Support/iPhone 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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With