Search code examples
ioscalendarekeventkit

EKCalendar and Error Domain=NSMachErrorDomain Code=268435459


I am exploring EKEventKit. I connect my iPhone and make the calls to get the calendars installed

EKEventStore *eventDB = [[EKEventStore alloc] init];
NSArray * calendars = [eventDB calendars ];

However when I log the calendars I get this error message

"CADObjectGetIntProperty failed with error Error Domain=NSMachErrorDomain Code=268435459 "The operation couldn’t be completed. (Mach error 268435459 - (ipc/send) invalid destination port)"

Does anybody know what this is and why I am getting it. Thanks

Reza


Solution

  • I found the issue.

    I had loaded and retained an EKEventStore previously in my code. Removing one of them solved the issue

    Reza