现象:
解决:
% appium driver list --installed
Listing installed drivers
-uiautomator2@3.7.8 [installed(npm)]
% appium driver uninstall uiautomator2
Uninstalling driver 'uiautomator2'
Successfully uninstalled driver 'uiautomator2'
% appium driver install xcuitest
Checking if "appium-xcuitest-driver'is compatible
Installing'xcuitest'using NPM install spec 'appium-xcuitest-driver'
Driver xcuiteste7.28.3 successfully installed
-automationName: XCUITest
-platformNames:["i0s","tvos"]
% appium driver install uiautomator2
Checking if 'appium-uiautomator2-driver'is compatible
Installing 'uiautomator2' using NPM install spec 'appium-uiautomator2-driver'
-automationName: UiAutomator2
-platformNames:["Android"]
安装完成重启后即可