[IOS]instruments命令行启动

instruments -w "iPhone Retina (3.5-inch) - Simulator - iOS 7.1" -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate  "/Users/XXXX/Library/Developer/Xcode/DerivedData/AlibabaV5-aprbifprqzzhxzbtxnojsykzaxxd/Build/Products/Debug-iphonesimulator/AlibabaV5.app" -e UIASCRIPT ~/Desktop/first.js  -e UIARESULTSPATH ~/Desktop -v

 

1.当不知道当前机器的设备名得时候,使用-w 随便填写字符串回车,就会看见当前机器的设备列表

2.模板只有2个位置,一个在Application目录一个在用户的Library目录。tree grep或者find就可以找到

3.需要指定启动哪个应用进行测试,要找到具体的app路径,从xcode中比较方便

4.-e 大写变量一定要携带 第一个指定js路径 第二个指定结果路径 

5.-v 打印日志

 

以上命令参考王子6号的博客:http://hi.baidu.com/wangzi6hao/item/6436dd10ffb071a5feded5b7

猜你喜欢

转载自myeyeofjava.iteye.com/blog/2083034
今日推荐