KIF Exit: AX Exchange Error: Domain Error = Availability Code = 0 "Remote service does not respond to _accessibilityMachPort"

When I run KIF integration tests on a device with iOS 8.1.3, I get a lot of diagnostic messages of the following form in the form of console output:

AX exchange error: domain error = availability code = 0 "Remote service does not respond to _accessibilityMachPort" UserInfo = 0x1a55de50 {NSLocalizedDescription = Remote service does not respond to _accessibilityMachPort}

This happens during a call to waitForAccessibilityElement:view:withElementMatchingPredicate:tappable:

Otherwise, the testing works as expected, it just seems a bit detailed. Therefore, I ask myself: is this diagnostic output a feature or an error? How can this be explained? What can or should be done if anything?

+5
source share
2 answers

These warnings seem to disappear if you enable VoiceOver on the device (with iOS 8.1 Settings | General | Accessibility ), however now you have spam (possibly) a lot of excessive sound instead of log messages.

KIF uses iOS Accessibility (VoiceOver) for what is not its usual purpose, but to place user interface elements by their accessibilityIdentifier and accessibilityLabel (without accessibility service). It is possible that the same template is used in reported cases near the MFMailComposerViewController to populate mail messages in the user interface. If so, this can be fair enough if iOS 8.1 reduces the capabilities of Accessibility (VoiceOver) when they are not needed (included) for their usual purposes. This may explain why the Mach port (apparently) is not connected and may, in turn, explain the observed messages.

+2
source

For people working with Xamarin.iOS, disabling Xamarin.Calabash.Start(); // For Test Cloud Xamarin.Calabash.Start(); // For Test Cloud pauses logging without stopping

+1
source

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


All Articles