when UIAlertController dismisses app hangup

Before iOS 26.1 our app work fine. but, when some users update to iOS 26.1 our app has very strange issues. Our app has a feature to upload pictures to server, before update pictures we will popup a UIAlertController to let user choose, there are 3 options, album, take a photo, cloud, or cancel. when click option button UIAlertController is hangup here not any response, and Xcode has no useful logs. How can I fix it? This app is work online for 8 years!!

// for get a nice view I paste our partial code in following:
-(void)onAddAttachment:(CertRequestMaterialModel *)model
{
    self->_uploadingMaterial = model;
    
    UIAlertController* alert = [UIAlertController alertControllerWithTitle:model.name message:@"Add new file to folder with:" preferredStyle:UIAlertControllerStyleActionSheet];

    UIAlertAction *takePhotoAction = [UIAlertAction actionWithTitle:@"Take a photo" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action)
    {
        [self takePhoto];
    }];
    
    UIAlertAction *takePictureAction = [UIAlertAction actionWithTitle:@"Album" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action)
    {
       [self presentPhotoPickerViewController];
    }];

    [alert addAction: takePhotoAction];
    [alert addAction: takePictureAction];
    [alert addAction: [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
    [self.navigationController presentViewController:alert animated:NO completion:nil];
}

Could you try reproducing the issue using the UIKit Catalog: Creating and Customizing Views and Controls sample project and let us know if it occurs there?

If the issue doesn’t appear in the sample project, it likely originates from your code path, and you’ll need to debug your implementation to identify what’s causing the hang.

when UIAlertController dismisses app hangup
 
 
Q