ios测试常用命令

1 篇文章 0 订阅
1 篇文章 0 订阅

常见命令

ls ~/Library/MobileDevice/Provisioning\ Profiles
security find-identity -p codesigning

安装appium的前提

http://appium.io/docs/en/drivers/ios-xcuitest-real-devices/

brew install libimobiledevice
brew install ios-deploy
依赖工具包安装:
brew install --HEAD ideviceinstaller
brew install --HEAD libimobiledevice
brew install ios-deploy
查看模拟器列表:instruments -s devices
查看真机列表:idevice_id -l
安装app: ideviceinstaller -i demo.app
命令行编译:
xcodebuild -scheme UICatalog -target iOS clean build
xcodebuild -scheme UICatalog -target iOS archive

WebDriverAgent

git clone https://github.com/facebook/WebDriverAgent.git
cd WebDriverAgent/
bash -x  ./Scripts/bootstrap.sh

start

https://github.com/facebook/WebDriverAgent/wiki/Using-the-Inspector

Inspector

http://localhost:8100/inspector

真机需要的capability

udid: auto
xcodeOrgId
xcodeSigningId
{
  "platformName": "ios",
  "deviceName": "iPhone X",
  "platformVersion": "11.0",
  "automationName": "xcuitest",
  "showXcodeLog": "true",
  "udid": "auto",
  "xcodeOrgId": "96NJEQL7Y2",
  "xcodeSigningId": "iPhone Developer"
}
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值