Posts

Post not yet marked as solved
0 Replies
401 Views
Hi, I am evaluating the write ony mode and on my Development iPhone (14 Max Pro / 17.2) I get an error when trying to add an event in write only access mode. I am using the provided snippet let store = EKEventStore() // Request write-only access guard try await store.requestWriteOnlyAccessToEvents() else { return } // Create an event let event = EKEvent(eventStore: store) event.calendar = store.defaultCalendarForNewEvents event.title = "WWDC23 Keynote" event.startDate = myEventStartDate event.endDate = myEventEndDate event.timeZone = TimeZone(identifier: "America/Los_Angeles") event.location = "1 Apple Park Way, Cupertino, CA, United States" event.notes = "Kick off an exhilarating week of technology and community." // Save the event guard try eventStore.save(event, span: .thisEvent) else { return } On the .save step I receive the following Error ("The calendar is read only") Failed to save event: Error Domain=EKErrorDomain Code=6 "Der Kalender ist schreibgeschützt." UserInfo={NSLocalizedDescription=Der Kalender ist schreibgeschützt.} Changing the premission to Full Access makes the snippet work. I tested with iCloud and CalDav Accounts. Both fail. Does anyone have similiar problems? Or a solution to this? It seems like a bug to me.
Posted
by ulide4.
Last updated
.