XCTest失败,并显示错误“类别AXAccessQueue均在这两个类别中实现...”

时间:2018-12-17 23:43:45

标签: ios xctest xcode10 xcuitest

XCTest失败,并出现以下错误。测试运行良好,直到导航到页面,然后在尝试查找该页面上的任何元素时,日志中都会显示以下错误。

当尝试手动访问该页面时,它可以正常工作而没有任何问题。配音也可以。仅在运行测试时发生错误。

  

objc [51026]:二者中均实现了AXAccessQueue类   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities   (0x12f627780)和   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Accessibility.framework/Frameworks/AXHearingSupport .framework / AXHearingSupport   (0x139359888)。将使用两者之一。哪个未定义。

     

objc [51026]:两种方法中都实现了AXAccessQueueTimer类   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities   (0x12f624d50)和   /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Accessibility.framework/Frameworks/AXHearingSupport .framework / AXHearingSupport   (0x1393598d8)。将使用两者之一。哪个未定义。

尝试使用Xcode 10和10.1模拟器iphone 8、8 plus,XR。

0 个答案:

没有答案