Posts

Post not yet marked as solved
0 Replies
364 Views
I have a watch app that is supposed to access the calendar and display information about the event and then count down until that event. But ever since the IOS 17.0.0 and watchOS 14.0.0, the old method of requesting access does not work (though it still works with the reminders). I tried to add a new authorization method that fits with the later version. static func requestAccess() { let eventStore = EKEventStore() let todayDate : Date = Date() let status = EKEventStore.authorizationStatus(for: .event) if status == .authorized { print("Access is already granted.") } else { print(status.rawValue) eventStore.requestFullAccessToEvents { success, error in if success && error == nil { print("Access has been granted.") } else { print(error ?? "unknown error") print("Access request failed with error: \(error?.localizedDescription ?? "Unknown error")") } } } } NSCalendarsWriteOnlyAccessUsageDescriptionHowever, even though I have both the NSCalendarWriteOnlyAccessDescription, adn the older NSCalendarUsageDescription as shown here: But the watch app not only fails to show a message to the user requesting access to the events on the watch, when I try to see what is causing the problem (despite the plist clearly showing the message), all I get is this output: Does anyone know what is the problem, even though the plist clearly has descriptions. Thank you in advance.
Posted Last updated
.
Post not yet marked as solved
1 Replies
718 Views
Hi I have built an application and trying to publish it to App Store Connect to do a TestFlight. My application is called Meeting Reminder App with an SKU of DanD.meeting-reminder. For some reason, every time I try to distribute the app to the App Store Connect, an email gets sent to me with this error: We identified one or more issues with a recent delivery for your app, "Meeting Reminder App" 1.0 (21). Please correct the following issues, then upload again. ITMS-90683: Missing Purpose String in Info.plist - Your app‘s code references one or more APIs that access sensitive user data. The app‘s Info.plist file should contain a NSCalendarsUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit: https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/requesting_access_to_protected_resources I have the key under the name of Privacy - Calendars Usage Description within the info.plist, and I have also made sure that the entitlement: Calendars is in both the Entitlement file for both release and debug. But somehow it still gives me the error. I would also like to point out that the Usage Description and the entitlements are only in the Extension file and not the actual App file. I do not know if that is necessary but please tell me if it is.
Posted Last updated
.