Hello
I am getting an error when I try to remove a saved event from Apple's Calendar app. (I am successfully saving the event to Apple's Calendar, but I am not able to remove the same event.)
In the custom class that subclasses NSObject :
import EventKit
inside the class’s init method :
eventStore = EKEventStore()
inside a function of this class :
let event = eventStore.eventWithIdentifier(savedCalendarItemIdentifier)
do {
try eventStore.removeEvent(event, span: EKSpan.ThisEvent, commit: true)
} catch {
/
}
savedCalendarItemIdentifier is taken from the original event the first time that it was saved to the calendar.
Here are the errors that I am getting.
Error getting event with identifier 8BCD8F3D-73D8-4E07-BAXX-69E05025D4F2: Error Domain=EKCADErrorDomain Code=1010 "(null)"
Error getting event with identifier 8BCD8F3D-73D8-4E07-BAXX-69E05025D4F2: Error Domain=EKCADErrorDomain Code=1010 "(null)"
Any ideas would be greatly appreciated!