@Lihuazhang appium 相当于一个翻译工具吧,将不同客户端产生的测试脚本翻译成对应系统测试框架的语言,1.6 之前是只支持 UIAutomation,1.6 开始支持 XCUITest,具体怎么实现我还没看,不过可以把迁移文档里的一段话给你参考。
With XCUITest, Apple has given different class names to the UI elements which make up the view hierarchy. For example, UIAButton is now XCUIElementTypeButton. In many cases, there is a direct mapping between these two classes. If you use the class name locator strategy to find elements, Appium 1.6 will rewrite the selector for you. Likewise, if you use the xpath locator strategy, Appium 1.6 will find any UIA* elements in your XPath string and rewrite them appropriately.