I got full access permission, granted is YES. but the status is NotDetermined.
Xcode Version 15.0 beta 8 (15A5229m) iPhoneXs iOS 17.0(21A329)
I got full access permission, granted is YES. but the status is NotDetermined.
Xcode Version 15.0 beta 8 (15A5229m) iPhoneXs iOS 17.0(21A329)
like this
I have similar problem. Just happen to me on iOS 17.0.3 and macOS Sonoma. I have an incident where calendar full access permission is granted in Settings>Privacy, but in the app it says No calendar access (status NotDeterminded). But I mean... in the Settings app it is clear that the permission is granted. I thought once the permission is granted, no matter what my code does or if there is any error in my code, the Full Access Permission should stay the same, no?
Same here. When the user is granted access, the EKAuthorizationStatus stays undetermined for about 20 seconds then switches to .granted!!!
Problem fixed. Well..... Not sure if this is the cause of this problem but after applying this fix I don't see this error anymore..
It turns out that I have error in accessing EKEventStore. Xcode gives me this error: "Client tried to open too many connections to calaccessd. Refusing to open another."
In my app, I have carelessly initialized EKEventStore() many times. While this had no problem in iOS16, it caused me the above error in iOS17
let eventStore = EKEventStore()
The fix is to create a new class like this:
class EventStoreManager: ObservableObject {
static let shared = EventStoreManager()
let eventStore: EKEventStore
private init() {
eventStore = EKEventStore()
}
}
Then when I want to access the EKEventStore either in View Struct or function, do this:
let eventStore = EventStoreManager.shared.eventStore
After doing this I have no error from Xcode anymore. And no issue with access to EKEventStore. Hope this might help.
I also have a similar problem!xcode 14.2 , iOS 17.1.1 In the iOS system settings, it is confirmed that the application has been authorized to obtain full access, but I have two EKEventStore objects that call the [EKEventStore authorizationStatusForEntityType: EKEntityTypeEvent] method. One permission state is EKAuthorizationStatusAuthorized, while the other permission state is EKAuthorizationStatusNotDetermined