Processing stops when "authorizationStatusForEntityType" is called

In the iOS app currently under development, when I called "[[MPMediaQuery alloc] init]" and then called "[EKEventStore authorizationStatusForEntityType: EKEntityTypeEvent]", the process stopped there.

This probrem only occurs in iOS 15.1 and not in iOS 15.0 or iOS 15.2.

Please tell me how to deal with this problem.

Processing stops when "authorizationStatusForEntityType" is called
 
 
Q