MFMailComposerViewController via UIActivityViewController error

I am trying to open a mail composer through the UIActivityViewController on iOS8. (So, I do not have my own code for this procedure). The result on the device is error logging (messages continue to be logged even after mail is closed and another user interface controller goes out).

Exchange AX Error: Domain Error = Availability Code = 0 "Remote service does not respond to _accessibilityMachPort" UserInfo = 0x14fd1b60 {NSLocalizedDescription = Remote service does not respond to _accessibilityMachPort}

On the simulator, MFMailComposeViewController just quits right after I present it with an error:

viewServiceDidTerminateWithError: Error Domain = _UIViewServiceInterfaceErrorDomain Code = 3 "Operation could not be completed. (_UIViewServiceInterfaceErrorDomain error 3.)" UserInfo = 0x7b6eb4b0 {Message = service connection disconnected}

PS I have xcode 6 and testing on iOS 8.0.2 iPhone 5s. Am I doing something wrong? Thank you in advance for your answers!

+6
source share
1 answer

I ran into the same problem in my product, and after some debugging, I narrowed down that this is a combination of the ViewController presented and the user keyboard. This means that my application only showed this error message when I navigated to any ViewController presented (for example, a mail composer) and the user keyboard was activated.

During further attempts, I was able to get rid of this error message by deleting the MonkeyTalk library , which was used for automatic testing.

I’m not sure if the same scenario applies to you, but I’m sure that some library is in conflict with some keyboard and that leads to an error message.

PS in my case, my application was frozen with these error messages.

0
source

Source: https://habr.com/ru/post/976660/


All Articles