Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13591] iOS: Cannot get access to Calendar when compiled using Xcode 4.4 and run on iOS 6

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-14T17:55:58.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 10 API, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsiOS
Labelsqe-closed-3.1.1, qe-sdk3.1.0, triage
ReporterParas Mishra
AssigneeVishal Duggal
Created2013-04-16T12:24:48.000+0000
Updated2013-06-03T23:25:40.000+0000

Description

App does not get proper access to use Calendar when the app is compiled against Xcode 4.4 and run on iOS 6 device. Steps to reproduce:

Make sure you have some events in the calendar.

Run the test app app.js

Expected: All Calendars from the native Calendar app should show up on the Picker. Actual: No Calendar is shown.

Attachments

FileDateSize
app.js2013-04-16T12:24:49.000+00003948
Screenshot 2013.06.03 10.54.15.png2013-06-03T23:17:25.000+0000156485
Screenshot 2013.06.03 10.54.37.png2013-06-03T23:17:25.000+000090926
Screenshot 2013.06.03 10.54.56.png2013-06-03T23:17:25.000+0000106623

Comments

  1. Paras Mishra 2013-04-16

    Using xcode: 4.4.1 , 4.6, app does not work on iPhone 5, iOS :6 But using xcode: 4.4.1 app works fine on iphone4s, iOS :5.1
  2. Sabil Rahim 2013-04-16

    This is essentially happening because of the conditional compilation of iOS 6 code that we put in for enabling privacy feature on iOS 6 and above. and Only happens if you build using Xcode 4.4 and try installing on iOS 6 device. Solution for this would be to, go to > settings > privacy and manually re-enable access for the given app to calendars.
  3. Blain Hamon 2013-05-07

    This is exactly why we should require running a current version of XCode, because Titanium cannot link to necessary commands if they're not there in an outdated version of the iOS SDK.
  4. Vishal Duggal 2013-05-14

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/4262
  5. Vishal Duggal 2013-05-14

    Backport to 3_1_X https://github.com/appcelerator/titanium_mobile/pull/4263
  6. Olga Romero 2013-06-03

    Tested with: Mac osx 10.8.3 Mountain Lion Appcelerator Studio, build: 3.1.1.201306012403 Titanium Studio, build: 3.1.1.201305312303 SDK, build: 3.1.1.v20130531163723 XCode 4.4.1 Device: iPhone 5 iOS 6.0 Please, see attached screenshots. I ran this test with cloud services disabled. Closing.

JSON Source