Swift iOS EKEventStore : Fetching atendees from EKEvent causes sometimes to crash with NSInvalidArgumentException Swift iOS EKEventStore : Fetching atendees from EKEvent causes sometimes to crash with NSInvalidArgumentException ios ios

Swift iOS EKEventStore : Fetching atendees from EKEvent causes sometimes to crash with NSInvalidArgumentException


It seems pretty clear that this is a bug in iOS and so you would need a hack to go around it until they fix it.

If it was Objective C I would've used a try catch block to try to catch the exception, so the app would not crash.

Here's an example of using a try block in Swift, by using an Objective C implementation: