EventKit not working correctly

EventKit does not seem to be working correctly on El Capitan. I'm trying to fetch Reminders calendars and fetch each of them. I've checked the release notes but couldn't find any known issues there. Is this issue known?



Methods not working properly :


1) calendarsForEntityType:

2) fetchRemindersMatchingPredicate:completion:


on EKEventStore



Expected behavior & how it works:


1) to fetch all calendars but it fetches them sometimes and sometimes not

2) to fetch reminders based on predicate. It works sometimes but mostly not.

Answered by robotspacer in 39580022

Looks like this is fixed in beta 6—I haven't run into it so far.

Hi,


Yep. I've noticed the same thing. It actually seems to be a problem with calendars that are associated with an iCloud account. I can fetch reminders and events for calendars stored on an Exchange server 100% of the time but iCloud based calendars fail 100% of the time. It's like EventKit just doesn't see them.


--Andy

We are seeing the same thing. Seems like it started in Beta 4 and now Beta 5.

Are either of your apps Sandboxed? I wonder if you have to be Sandboxed?

Same here.

My app is sandboxed and I'm seeing this bug too. All I get are birthday and subscribed calendars, no iCloud calendars are returned.

Accepted Answer

Looks like this is fixed in beta 6—I haven't run into it so far.

EventKit not working correctly
 
 
Q