Error Creating the CFMessagePort

When I call a mail composer in my app, I get an error generated that says "Error creating the CFMessagePort needed to communicate with PPT." When this happens, I'm unable to dismiss the mail composer programmatically with the mailComposeController(didFinishWith:) function. The mail composer is called by a button that when tapped, should auto-generate an email with a jpeg attached.

hey, did you get some work around or fix for this issue? I am also getting the same error "Error creating the CFMessagePort needed to communicate with PPT." while trying to present mail composer using MFMailComposeViewController.

Error Creating the CFMessagePort
 
 
Q