{"id":1025,"date":"2014-12-09T17:48:13","date_gmt":"2014-12-09T09:48:13","guid":{"rendered":"http:\/\/www.yeetrack.com\/?p=1025"},"modified":"2014-12-09T17:48:13","modified_gmt":"2014-12-09T09:48:13","slug":"xcode-uiautomation-%e5%8d%a1%e5%9c%a8starting-capture","status":"publish","type":"post","link":"https:\/\/www.yeetrack.com\/?p=1025","title":{"rendered":"Xcode UIAutomation \u5361\u5728starting capture"},"content":{"rendered":"<p>\u4f7f\u7528xcode\u7684UIAutomation\u53ef\u4ee5\u5bf9ios app\u8fdb\u884c\u811a\u672c\u5f55\u5236\uff0c\u56de\u653e\uff0c\u8dd1monkey\u6d4b\u8bd5\u3002\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u6709\u65f6\u5019\u4f1a\u9047\u5230\u5361\u5728starting capture\u8fd9\u91cc\uff0c\u4e0b\u9762\u662fstackoverflow\u4e2d\u7684\u56de\u7b54\u3002<\/p>\n<h2>\u95ee\u9898\uff1a<\/h2>\n<p>\u5f53\u6211\u4f7f\u7528xcode\u7684UIAutomation\u65f6\uff0c\u5361\u5728\"Starting Capture\".<\/p>\n<p>\u6211\u7684\u64cd\u4f5c\u8fc7\u7a0b\u5982\u4e0b\uff1a<!--more--><\/p>\n<ol>\n<li>\u5728xcode\u4e2d\uff0c\u70b9\u51fb\"Profile\"\uff0c\u6216\u8005\u5feb\u6377\u952e command+I\u3002<\/li>\n<li>Instruments\u9009\u62e9\u754c\u9762\u542f\u52a8\uff0c\u5728\u5176\u4e2d\u9009\u62e9\"Automation\",\u7136\u540e\u70b9\u51fb\"Profile\"\u3002<\/li>\n<li>Instruments\u542f\u52a8\uff0c\u65b0\u5efa\u4e00\u4e2ascript\uff0c\u70b9\u51fb\u4e0b\u65b9\u7684\u7ea2\u8272\u5f00\u59cb\u5f55\u5236\u6309\u94ae\uff0c\u5361\u5728\u201cStarting Capture\"\u754c\u9762\u3002<\/li>\n<\/ol>\n<h2>\u4f5c\u8005\u81ea\u7b54\uff1a<\/h2>\n<p>\u6b63\u786e\u7684\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u70b9\u51fb\"Profile\"\uff0c\u6216\u8005\u4f7f\u7528\u5feb\u6377\u952eCommand+I<\/li>\n<li>\u5728\u542f\u52a8\u7684\u754c\u9762\u4e2d\uff0c\u9009\u62e9\"Automation\",\u70b9\u51fb\"Profile\"<\/li>\n<li>\u70b9\u51fbInstruments\u754c\u9762\u7684\u56de\u653e\u6309\u94ae\uff0c\u6740\u6389\u8fd0\u884c\u7684app\u8fdb\u7a0b\u3002\uff08\u8fd9\u4e00\u6b65\uff0c\u6211\u5728xcode6\u4e2d\uff0c\u53d1\u73b0app\u6ca1\u6709\u81ea\u52a8\u542f\u52a8\uff0c\u6240\u4ee5\u4e0d\u7528\u505a\uff09\u3002<\/li>\n<li>\u70b9\u51fb\"Scripts\" &gt; \"Add\" &gt; \"Create\",\u65b0\u5efa\u4e00\u4e2ascript<\/li>\n<li>\u70b9\u51fb\u5e95\u90e8\u7684\u5f55\u5236\u6309\u94ae\uff0c\u5f00\u59cb\u5f55\u5236\uff0c\u8fdb\u884c\u4e00\u7cfb\u5217\u7684\u64cd\u4f5c\uff0cxcode\u4f1a\u81ea\u52a8\u6253\u51fa\u76f8\u5e94\u7684js\u4ee3\u7801\u3002<\/li>\n<li>\u70b9\u51fb\u4e0a\u9762\u7ea2\u8272\u7684\u6309\u94ae\uff0c\u53ef\u4ee5\u56de\u653e\u521a\u624d\u5f55\u5236\u7684\u811a\u672c<\/li>\n<li>\u70b9\u51fb\"Trace Log\" &gt; \"Script\"\u53ef\u4ee5\u67e5\u770b\u5f55\u5236\u811a\u672c\u7684\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p>\u53e6\u5916\u8fd8\u6709\u4e00\u70b9\u8981\u6ce8\u610f\uff1aios8.0\u53ca\u4ee5\u4e0a\uff0c\u9700\u8981\u5728\u624b\u673a\u4e2d\u8bbe\u7f6e\u5141\u8bb8Automation\uff0c\u65b9\u6cd5:\u8bbe\u7f6e &gt; \u5f00\u53d1\u8005 &gt; Enable UI Automation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528xcode\u7684UIAutomation\u53ef\u4ee5\u5bf9ios app\u8fdb\u884c\u811a\u672c\u5f55\u5236\uff0c\u56de\u653e\uff0c\u8dd1monkey\u6d4b\u8bd5\u3002\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u6709\u65f6\u5019\u4f1a\u9047\u5230\u5361\u5728starting capture\u8fd9\u91cc\uff0c\u4e0b\u9762\u662fstackoverflow&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[34],"tags":[44,53,42,41],"class_list":["post-1025","post","type-post","status-publish","format-standard","hentry","category-software","tag-ios","tag-xcode","tag-42","tag-41"],"views":4260,"_links":{"self":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/1025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1025"}],"version-history":[{"count":1,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions"}],"predecessor-version":[{"id":1026,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions\/1026"}],"wp:attachment":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}