常见命令
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"
}