26 lines
991 B
Bash
26 lines
991 B
Bash
#!/bin/bash
|
||
# go-ios 常用命令
|
||
|
||
# 启动Fastbot
|
||
ios runtest --bundle-id=com.tpshos.FastbotRunner.xctrunner \
|
||
--test-runner-bundle-id=com.tpshos.FastbotRunner.xctrunner \
|
||
--udid=00008101-0016601022C0001E \
|
||
--xctest-config=FastbotRunner.xctest \
|
||
--env BUNDLEID=com.apple.AppStore \
|
||
--env duration=10 \
|
||
--env throttle=1000
|
||
|
||
# 启动WebDriverAgent
|
||
ios runtest --bundle-id=com.tpshos.WebDriverAgentRunner.xctrunner \
|
||
--test-runner-bundle-id=com.tpshos.WebDriverAgentRunner.xctrunner \
|
||
--udid=00008101-0016601022C0001E \
|
||
--xctest-config=WebDriverAgentRunner.xctest \
|
||
--env USE_PORT=8100 \
|
||
--env USE_IP=127.0.0.1
|
||
|
||
# pcap制定bundle抓包
|
||
# ios pcap [options] [--pid=<processID>] [--process=<processName>] [--bundle=<bundleID>] \
|
||
# [--allmark] [--direction] [--debug] [--output=<dir>] [--udid=<udid>]
|
||
# go-ios所有命令不指定udid时默认使用第一个设备,多个设备时务必指定udid
|
||
ios pcap --bundle=com.apple.AppStore --udid=00008101-0016601022C0001E
|
||
|