I'm having issues with EventKit.
What's weird is, before all this started happening, everything was working correctly without the store.reset() call - even the calendars were getting returned.
However, I accidentally deleted my App's Target and had to recreate it. Since recreating the build target, I was NOT getting results for "store.predicateForEvents" until I called "store.reset()" after authorization was granted. But I still can't get the calendar list after first launch.
Before requesting any data from EventKit, I request auth access to reminders and calendar.
In the App Sandbox configuration, I've checked off Reminders.
After requesting access, I call reset() on the EKEventStore I created.
The first time after access is approved, a call to "store.calendars(for: .event)" returns zero results (calls to "store.predicateForEvents" WILL return results).
If I force quit the app and launch it again, I get results for "store.calendars(for: .event)"
What's weird is, before all this started happening, everything was working correctly without the store.reset() call - even the calendars were getting returned.
However, I accidentally deleted my App's Target and had to recreate it. Since recreating the build target, I was NOT getting results for "store.predicateForEvents" until I called "store.reset()" after authorization was granted. But I still can't get the calendar list after first launch.