Xcode runtime error for iOS iPhone 8 - [AXRuntimeCommon] AX Lookup problem - errorCode:1100 portName:'com.apple.iphone.axserver' PID:2751

I am getting a runtime error from Xcode in the debug window when I run my app on an actual iPhone 8 device:


[AXRuntimeCommon] AX Lookup problem - errorCode:1100 portName:'com.apple.iphone.axserver' PID:2751


I have no idea what code that is coming from. I am using the Notification Content Extension.


What is causing this error message?

I get the same error when the following method is called:

mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error

It happens when I cancel the modally presented email view.

I discovered I could eliminate this error if, after dismissing the MFMailComposeViewController, I added dispatch_async before presenting a mail results UIAlertController:


Code Block  
[self dismissViewControllerAnimated:YES completion:^{  //this is the MFMailComposeViewController
dispatch_async(dispatch_get_main_queue(), ^{
[self presentViewController:eMailResults animated:YES completion:nil];
        });
    }];


Thank you a lot for this hint.
I'm dismissing before the current View Controller, then present the SFSafariViewController.

Using following Code does help me out! Try it! - I'm on ... in Xcode 11.3.1 (macOS 10.14.6) and iOS 13.3.

// Command...
DispatchQueue.main.async(execute: {
/// code goes here
})

// my solution...
DispatchQueue.main.async {
   self.present(safariVC, animated: true, completion: nil)
}

Xcode runtime error for iOS iPhone 8 - [AXRuntimeCommon] AX Lookup problem - errorCode:1100 portName:'com.apple.iphone.axserver' PID:2751
 
 
Q