I create a EKEventStore
, make sure I have access, create an event and persist it. I save off the eventIdentifier
and all is good. It's a recurring calendar entry.
Next I want to remove a couple days from the recurring event. You might have a recurring meeting every Friday, but this Friday is the annual dingleberry festival and so the meeting is cancelled.
I use removeEvent:span:commit:error:
and all works as intended.
Then I decide I want to ditch the event from the calendar completely. I call [self.store removeEvent:event span:EKSpanFutureEvents commit:YES error:&error];
and I throw some errors/garbage into the console.
Error loading date date from daemon: Error Domain=EKCADErrorDomain Code=1010 "The operation couldn’t be completed. (EKCADErrorDomain error 1010.)"
This only happens when I remove specific dates over the span of a recurring event and the EKEventStore
spews this line once for every single missing date in the event. The result is, if I cancel a half dozen events with a half dozen days taken out in the middle I get quite a large spew of these message.
It doesn't seem to impact the functionality of my code or even the performance, but I hate seeing stuff like this spew into the console so I'm hoping someone can help me find a reasonable way to prevent it.