MFMailComposerViewController via UIActivityViewController error

我是研究僧i 提交于 2019-12-07 03:28:52

问题


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:


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.



来源:https://stackoverflow.com/questions/26336227/mfmailcomposerviewcontroller-via-uiactivityviewcontroller-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!