Issue: Deleting the next event (in my case an iCloud calendar synced from my Mac) would cause the MWM app to crash almost every time.
Possible Cause: The event deletion causes several EKEventStoreChangedNotification notifications to fire rapidly, and while handling the first notification the event may still be changing, leading to the crash. That is my theory.
Resolution: Using a timer to delay handling the notification, effectively queuing multiple repeated notifications, eliminated the crashes in my testing. This will also reduce the amount of processing to handle event changes.
Issue: Deleting the next event (in my case an iCloud calendar synced from my Mac) would cause the MWM app to crash almost every time.
Possible Cause: The event deletion causes several EKEventStoreChangedNotification notifications to fire rapidly, and while handling the first notification the event may still be changing, leading to the crash. That is my theory.
Resolution: Using a timer to delay handling the notification, effectively queuing multiple repeated notifications, eliminated the crashes in my testing. This will also reduce the amount of processing to handle event changes.