ios UI自动化 appium参数配置

  在iosUI自动化中,环境配置成功后,就需要设置appium的一些参数,udid的手机一定是在苹果管理者后台加入的手机,否则查找不到

 
{
"platformName": "IOS",
"platformVersion": "IphoneSystemVersion",
"deviceName": "IphoneName",
"automationName": "XCUITest",
"app": "path", (包绝对路径)
"udid": "*****",(手机udid,查找方式xcode-windows-devices simulator)
"bundleId": "****",(app的bundleId,找开发即可)
"xcodeSigningId": "iPhone Developer",(一个通用的获取证书名称的,无需更改)
"updatedWDABundleId": "*****",(xcode中WDA的bundleId)
"xcodeOrgId": "*****",(重点:找到开发者证书,里面的组织机构id)
"noReset": "True"
}
 
1、app为安装包的绝对路径。
2、如果运行时报错,查找不对奥Xcode Version时:could not get xcode version. /Library/Developer/Info.plist doest not exist on disk
安装Xcode-select
xcode-select --install
sudo xcode-select --switch /Applications/Xcode.app
 
原文地址:https://www.cnblogs.com/Jaredhan/p/15693866.html