XPC connection was invalidated

Hi,

The following code generates the message "XPC connection was invalidated" when I click on "Hello world", both in the simulator and on my iPhone.

Code Block
import SwiftUI
import EventKit
struct ContentView: View {
    var body: some View {
        Text("Hello, world!")
            .onTapGesture {
                let _ = EKEventStore()
            }
    }
}



Of course the code for my app is more detailed, but I just publish this sample code that is sufficient to generate the XPC message.

I am using Xcode 12.3 and Big Sur.
In Info.plist, "Privacy - Calendars Usage Description" is declared with an associated string.

Any reason for this error message ? Can I just ignore it ?

Thanks for your help,
Nicolas
XPC connection was invalidated
 
 
Q