{"id":71,"date":"2016-04-19T15:48:08","date_gmt":"2016-04-19T07:48:08","guid":{"rendered":"http:\/\/douhan.li\/?p=71"},"modified":"2016-04-19T15:48:08","modified_gmt":"2016-04-19T07:48:08","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8linux%e4%b8%8b%e8%b0%83%e8%af%95ios-safarisafari-webview","status":"publish","type":"post","link":"https:\/\/douhan.li\/?p=71","title":{"rendered":"\u5982\u4f55\u5728Linux\u4e0b\u8c03\u8bd5iOS Safari\/Safari Webview"},"content":{"rendered":"<p>\u79fb\u52a8\u7aef\u7684\u5f00\u53d1\u8d8a\u6765\u8d8a\u591a\uff0c\u5728\u79fb\u52a8\u7aef\u4e0a\u771f\u673a\u8c03\u8bd5Web\u5e94\u7528\u4e5f\u662f\u4e00\u4e2a\u5bf9\u4e8e\u5f00\u53d1\u8005\u800c\u8a00\u6bd4\u8f83\u5f3a\u70c8\u7684\u521a\u9700\u3002google\u5c31\u505a\u4e86\u4e00\u4e2a\u53ebios_webkit_debug_proxy\u7684\u4e1c\u897f\uff0c\u5927\u90e8\u5206\u535a\u5ba2\u6216\u8005\u6587\u7ae0\u5bf9\u5b83\u7684\u4ecb\u7ecd\u57fa\u672c\u4e0a\u504f\u5411\u4e8e\u8fd9\u4e2a\u5de5\u5177\u662f\u8ba9\u559c\u7231Chrome\u7684\u5f00\u53d1\u8005\u5728\u4e0d\u91c7\u7528safari\u7684\u8c03\u8bd5\u5de5\u5177\u4e0b\u8c03\u8bd5IOS Web\u5e94\u7528\uff0c\u4f46\u6211\u89c9\u5f97\u8fd9\u4e2a\u5de5\u5177\u66f4\u9002\u5408\u7684\u5b9a\u4f4d\u662f\uff0c\u975eMac\u8c03\u8bd5IOS Web\u5e94\u7528\u7684\u5f00\u53d1\u8005\u3002<br \/>\n\u5e9f\u8bdd\u4e0d\u591a\u8bf4\uff0c\u4ee5Ubuntu\u4e3a\u4f8b\uff0c\u5927\u81f4\u8bb2\u89e3\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e0a\u5b89\u88c5\u8be5\u7a0b\u5e8f\u3002<br \/>\ngit\u5730\u5740\u662f\uff1ahttps:\/\/github.com\/google\/ios-webkit-debug-proxy<br \/>\n\u8fd9\u4e2a\u7a0b\u5e8f\u662f\u591a\u5e73\u53f0\u7684\uff0c\u6240\u4ee5\u65e0\u8bba\u5728Linux\u4e0a\u8fd8\u662fMac OS\u4e0a\u751a\u81f3Windows\u4e0a\u90fd\u53ef\u4ee5\u4f7f\u7528\uff0c\u5927\u90e8\u5206\u5b89\u88c5\u65b9\u6cd5\u90fd\u5927\u540c\u5c0f\u5f02\u3002\u597d\u591a\u524d\u7aef\u5f00\u53d1\u8005\u8fd8\u662f\u559c\u6b22Windows\u4e0b\u5f00\u53d1\uff0c\u4e0d\u8fc7\u6211\u5c31\u4e0d\u8bb2\u8ff0Windows\u4e0b\u7684\u5b89\u88c5\u65b9\u6cd5\uff0c\u8bf7\u81ea\u884c\u7814\u7a76\u3002<br \/>\nGithub\u7684Readme\u4e2d\u8bb2\u8ff0\u7684\u975e\u5e38\u7b80\u5355\uff0c<\/p>\n<p>On Linux or Mac:<\/p>\n<div class=\"highlight highlight-text-shell-session\">\n<pre><span class=\"pl-mo\">sudo apt-get install autoconf automake libusb-dev libusb-1.0-0-dev libplist-dev libplist++-dev usbmuxd libtool libimobiledevice-dev<\/span>\r\n\r\n<span class=\"pl-mo\">git clone https:\/\/github.com\/google\/ios-webkit-debug-proxy.git<\/span>\r\n<span class=\"pl-mo\">cd ios-webkit-debug-proxy<\/span>\r\n\r\n<span class=\"pl-mo\">.\/autogen.sh<\/span>\r\n<span class=\"pl-mo\">make<\/span>\r\n<span class=\"pl-mo\">sudo make install\r\n<\/span><\/pre>\n<\/div>\n<p>\u4f46\u5982\u679c\u89c9\u5f97\u5b89\u88c5\u786e\u5b9e\u662f\u8fd9\u4e48\u7b80\u5355\u7684\uff0c\u90a3\u5b9e\u5728\u662f\u592a\u5929\u771f\u4e86\uff08\u6211\u4e5f\u5929\u771f\u8fc7\u3002\u3002\u3002\uff09\uff0c\u5982\u679c\u4f60\u6309\u7167\u8fd9\u4e2a\u65b9\u6cd5\u5b89\u88c5\uff0c\u5219\u4f1a\u63d0\u793a\u4f9d\u8d56\u7248\u672c\u8fc7\u4f4e\uff0c\u65e0\u6cd5\u5b89\u88c5\u3002\u6240\u4ee5\u5982\u679c\u60f3\u4f7f\u7528\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u5148\u8981\u5b89\u88c5\u597d\u76f8\u5173\u4f9d\u8d56\u3002<\/p>\n<p>ios-webkit-debug-proxy \u4e3b\u8981\u4f9d\u8d56libimobiledevice,libusbmuxd,libplist\u8fd9\u4e09\u4e2a\u5e93\uff0c\u4f46libimobiledevice\u5b89\u88c5\u4f1a\u5f02\u5e38\u7684\u8f9b\u82e6\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u4e1c\u897f\u7684\u4f9d\u8d56\u7a0d\u5fae\u6709\u4e9b\u591a<\/p>\n<p>Sources and Dependencies:<\/p>\n<p>libimobiledevice-1.2.0.tar.bz2<br \/>\nifuse-1.1.3.tar.bz2<br \/>\nlibplist-1.12.tar.bz2<br \/>\nlibusbmuxd-1.0.10.tar.bz2<br \/>\nusbmuxd-1.1.0.tar.bz2 (needs libusb >= 1.0.3)<br \/>\nideviceinstaller-1.1.0.tar.bz2<br \/>\nlibideviceactivation-1.0.0.tar.bz2<\/p>\n<p>\u8fd9\u4e9b\u90fd\u9700\u8981\u4e0b\u8f7d\u4e0b\u6765\uff0c\u5730\u5740\u5728http:\/\/www.libimobiledevice.org\/<br \/>\nmake &#038;&#038; sudo make install <\/p>\n<p>git clone https:\/\/github.com\/google\/ios-webkit-debug-proxy.git <\/p>\n<p>make &#038;&#038; sudo make install<\/p>\n<p>\u6ce8\u610f\u7684\u662f\u4e0d\u8981\u8ba4\u4e3a\u673a\u5668\u4e0a\u5df2\u7ecf\u6709\u4e00\u4e9blib\u5c31\u4e0d\u4e0b\u8f7d\uff0c\u6839\u636e\u6211\u8e29\u5230\u7684\u5751\uff0c\u57fa\u672c\u4e0a\u90fd\u8981\u624b\u52a8\u7f16\u8bd1\u5b89\u88c5\uff0c\u8981\u4e0d\u7136\u5404\u79cd\u95ee\u9898\u3002<\/p>\n<p>\u7279\u522b\u662flibusbmuxd \u8fd9\u4e2a\u5728ubuntu\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7684\u9ed8\u8ba4\u7248\u672c\u76f8\u5f53\u4f4e\uff0c\u5bb9\u6613\u51fa\u9519\u53c8\u6ca1\u6709\u529e\u6cd5\u8fde\u63a5\uff0c\u52a1\u5fc5\u6ce8\u610f\u3002<\/p>\n<p>.\/ios-webkit-debug-proxy \u6267\u884c\u4e00\u4e0b<br \/>\n\u8fde\u63a5\u673a\u5668<br \/>\nhttp:\/\/localhost:9222<br \/>\n\u70b9\u51fb\u6240\u8981\u8c03\u8bd5\u7684\u9875\u9762 enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79fb\u52a8\u7aef\u7684\u5f00\u53d1\u8d8a\u6765\u8d8a\u591a\uff0c\u5728\u79fb\u52a8\u7aef\u4e0a\u771f\u673a\u8c03\u8bd5Web\u5e94\u7528\u4e5f\u662f\u4e00\u4e2a\u5bf9\u4e8e\u5f00\u53d1\u8005\u800c\u8a00\u6bd4\u8f83\u5f3a\u70c8\u7684\u521a\u9700\u3002google\u5c31\u505a\u4e86\u4e00\u4e2a &hellip; <a href=\"https:\/\/douhan.li\/?p=71\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5982\u4f55\u5728Linux\u4e0b\u8c03\u8bd5iOS Safari\/Safari Webview<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[15,14,16,13],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/douhan.li\/index.php?rest_route=\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/douhan.li\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/douhan.li\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/douhan.li\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/douhan.li\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":1,"href":"https:\/\/douhan.li\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/douhan.li\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/douhan.li\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/douhan.li\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/douhan.li\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}