MFMailComposerViewController via UIActivityViewCon

2019-04-28 04:39发布

I'm trying to open a mail composer via UIActivityViewController on iOS8. (So, there's no my own code for this procedure) The result on device is continues error logging (the messages continue to be logged even after I close mail and quit to different UI controller)

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

On a simulator the MFMailComposeViewController just dismisses right after I present it with error:

viewServiceDidTerminateWithError: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 3.)" UserInfo=0x7b6eb4b0 {Message=Service Connection Interrupted}

P.S. I have xcode 6 and testing on iOS 8.0.2 iPhone 5s. Am I doing something wrong? Thanks in advance for your replies!

1条回答
Melony?
2楼-- · 2019-04-28 05:08

I came across same problem in my product and after doing some debugging, I narrowed down that it's the combination of presented ViewController and custom keyboard. That means my application was showing this error message only when I navigated to any presented ViewController (like mail composer) and a custom keyboard was activated.

During further hit-and-try, I was able to get rid of this error message by removing MonkeyTalk library, which was being used for automated testing.

I am not sure if same scenario applies to you, but I am sure that some library is conflicting with some keyboard and that's resulting in error message.

P.S. in my case my application was being freezed by those error messages.

查看更多
登录 后发表回答