KIF output: AX Exchange error: Error Domain=Accessibility Code=0 "Remote service does not respond to _accessibilityMachPort"
Asked Answered
I

2

9

When running KIF integration tests on device with iOS 8.1.3 I get lots of diagnostic messages of the following kind as console output:

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

This occurs during a call to waitForAccessibilityElement:view:withElementMatchingPredicate:tappable:.

Otherwise testing works as expected, it just seems a bit verbose. So I am wondering: is this kind of diagnostic output a feature or a bug? How can it be explained? What can or should I do about it, if anything?

Irtysh answered 14/2, 2015 at 12:0 Comment(1)
Restarting the simulator did the trick for me.Millda
I
3

These warnings apparently disappear if one enables VoiceOver on the device (with iOS 8.1 Settings | General | Accessibility), however now one gets spammed with (perhaps) lots of redundant audio instead of log messages.

KIF is employing iOS Accessibility (VoiceOver) for what is not its normal purpose, but for locating UI elements by their accessibilityIdentifiers and accessibilityLabels (without serving Accessibility). It is conceivable that the same pattern applies in reported cases around MFMailComposerViewController for filling mail messages in the UI. If that is so, it may be fair enough if iOS 8.1 reduces Accessibility (VoiceOver) services when they are not needed (enabled) for their normal purposes. That could explain why a Mach port is (apparently) not bound and could in turn explain the observed warning messages.

Irtysh answered 18/2, 2015 at 19:55 Comment(1)
Having the same issue with iOS 10 on iPhone 6s using SafariViewController (I don't open it, but facebook SDK does).Textile
D
16

For people working with Xamarin.iOS, disabling Xamarin.Calabash.Start(); // For Test Cloud suspends the non-stop logging

Demarche answered 4/12, 2017 at 7:26 Comment(1)
Could you describe "why" this works? Seeing similar suggestions around the web: chrisrisner.com/Xamarin-iOS-Error-ConfusionRadiancy
I
3

These warnings apparently disappear if one enables VoiceOver on the device (with iOS 8.1 Settings | General | Accessibility), however now one gets spammed with (perhaps) lots of redundant audio instead of log messages.

KIF is employing iOS Accessibility (VoiceOver) for what is not its normal purpose, but for locating UI elements by their accessibilityIdentifiers and accessibilityLabels (without serving Accessibility). It is conceivable that the same pattern applies in reported cases around MFMailComposerViewController for filling mail messages in the UI. If that is so, it may be fair enough if iOS 8.1 reduces Accessibility (VoiceOver) services when they are not needed (enabled) for their normal purposes. That could explain why a Mach port is (apparently) not bound and could in turn explain the observed warning messages.

Irtysh answered 18/2, 2015 at 19:55 Comment(1)
Having the same issue with iOS 10 on iPhone 6s using SafariViewController (I don't open it, but facebook SDK does).Textile

© 2022 - 2024 — McMap. All rights reserved.