我的代碼: EKEventStore訪問請求崩潰:應用程序的Info.plist必須包含一個NSRemindersUsageDescription關鍵
EKEventStore* eventStore = [[EKEventStore alloc] init];
[eventStore requestAccessToEntityType:EKEntityTypeReminder
completion:^(BOOL granted, NSError * _Nullable error) {
}];
該應用程序的Info.plist 已經包含的NSRemindersUsageDescription key and NSCalendarsUsageDescription鍵, 但 下面的代碼適用於iOS 8和9很好,但在iOS 10崩潰。像:
[access] This app has crashed because it attempted to access
privacy-sensitive data without a usage description.
The app's Info.plist must contain an NSCalendarsUsageDescription key
with a string value explaining to the user how the app uses this data.
我的應用程序的Info.plist已經包含NSRemindersUsageDescription,但在iOS 10上它崩潰了。 –
@王先生好吧,那麼'錯誤'日誌是你的問題'日誌信息'呢? – aircraft