`
MyEyeOfJava
  • 浏览: 1124601 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
7af2d6ca-4fe1-3e9a-be85-3f65f7120bd0
测试开发
浏览量:70161
533896eb-dd7b-3cde-b4d3-cc1ce02c1c14
晨记
浏览量:0
社区版块
存档分类
最新评论

[IOS]instruments命令行启动

    博客分类:
  • ios
阅读更多

 

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics