How to fix this error using messageui library in swift?

1.3k Views Asked by At

I used the messageui library in swift to create a mail composer, embedded into a button that opens the default mail app once clicked. However I keep getting this error once the mail app is opened.

Error:[PPT] Error creating the CFMessagePort needed to communicate with PPT.

1

There are 1 best solutions below

1
Md. Munjur alam On

If anyone has this issue, I seem to have found it. I had implemented viewDidAppear:(BOOL)animated in the MessagesViewController.m, but i did not call [super viewDidAppear:animated]. Adding the call to super fixed the missing touch events.

The problem seems unrelated to the CFMessagePort error, because those are still showing in the Xcode console.