在真实设备上运行 XCUITests 时出现很多错误:
Runner [AXValidations] UIAccessibility 添加错误 -[PHAsset accessibilityLabel] Runner [AXValidations] UIAccessibility 添加错误 -[PLManagedAsset accessibilityLabel] Runner[AXValidations] UIAccessibility 错误添加 -[PLManagedaAsset accessibilityValue] Runner [AXValidations] UIAccessibility 添加错误 -[PLManagedAsset accessibilityTraits] Runner[ AXValidations] UIAccessibility 添加错误 - [PLManagedAsset _accessibilityPhotoDescription] Runner [AXValidations] UIAccessibility 添加错误 + [PLManagedAsset safeCategoryBaseClass]
它会减慢测试速度。此外,我没有看到这些错误在模拟器上运行测试。