4 Replies
      Latest reply on Nov 14, 2019 12:24 AM by yaokk
      conradstoll Level 1 Level 1 (0 points)

        I'm seeing a crash when I attempt to create a new reminder. The crash is in Beta 5 of Xcode 11 / iOS 13. I'm not doing anything special to create a reminder:

         

        let store = EKEventStore()

        EKReminder(eventStore: store)

         

        But the crash occurs inside the initializer of EKReminder. Here's what the stack trace looks like:

         

        2019-08-03 15:15:05.836342-0500 Grocery[9785:270848] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<EKPersistentReminder 0x60000289bf00> valueForUndefinedKey:]: this class is not key value coding-compliant for the key dueDateComponents.'

        *** First throw call stack:

        (

          0   CoreFoundation                      0x00007fff23b60e3e __exceptionPreprocess + 350

          1   libobjc.A.dylib                     0x00007fff502f3b20 objc_exception_throw + 48

          2   CoreFoundation                      0x00007fff23b60a09 -[NSException raise] + 9

          3   Foundation                          0x00007fff25639f38 -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 225

          4   Foundation                          0x00007fff25638bab -[NSObject(NSKeyValueCoding) valueForKey:] + 317

          5   EventKit                            0x00007fff25245d4e -[EKChangeSet valueForSingleValueKey:basedOn:and:] + 305

          6   EventKit                            0x00007fff25283553 -[EKObject(Shared) singleChangedValueForKey:] + 246

          7   EventKit                            0x00007fff2521ace5 -[EKReminder(Shared) timeZone] + 23

          8   EventKit                            0x00007fff2521aab9 -[EKReminder(Shared) setTimeZone:] + 48

          9   EventKit                            0x00007fff2524b541 -[EKReminder initWithPersistentObject:] + 164

          10  EventKit                            0x00007fff2524b448 +[EKReminder reminderWithEventStore:] + 194

          11  Grocery                             0x0000000106eb93c7 $sSo10EKReminderC10eventStoreABSo07EKEventC0C_tcfCTO + 39

          12  Grocery                             0x0000000106eb9387 $s7Grocery12EventStorageC11newReminder4withSo10EKReminderCSo12EKEventStoreC_tFZ + 711