在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:google/ios-webkit-debug-proxy开源软件地址:https://github.com/google/ios-webkit-debug-proxy开源编程语言:C 97.9%开源软件介绍:iOS WebKit Debug ProxyThe ios_webkit_debug_proxy (aka iwdp) proxies requests from usbmuxd daemon over a websocket connection, allowing developers to send commands to MobileSafari and UIWebViews on real and simulated iOS devices. InstallationiOS WebKit Debug Proxy works on Linux, MacOS & Windows. MacOSIt's easiest to install with homebrew: brew install ios-webkit-debug-proxy WindowsIt's easiest to install with scoop:
Note: you also need the latest version of iTunes installed. LinuxInstall dependencies available in apt repository: sudo apt-get install autoconf automake libusb-dev libusb-1.0-0-dev libplist-dev libtool libssl-dev Build and install dependencies that require more recent versions: Build and install git clone https://github.com/google/ios-webkit-debug-proxy.git
cd ios-webkit-debug-proxy
./autogen.sh
make
sudo make install UsageOn Linux, you must run the To verify that usbmuxd can list your attached device(s), ensure that Start the simulator or deviceThe iOS Simulator is supported, but it must be started before the proxy. The simulator can be started in XCode, standalone, or via the command line: # Xcode changes these paths frequently, so doublecheck them
SDK_DIR="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs"
SIM_APP="/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator"
$SIM_APP -SimulateApplication $SDK_DIR/iPhoneSimulator8.4.sdk/Applications/MobileSafari.app/MobileSafari Enable the inspectorYour attached iOS devices must have ≥1 open browser tabs and the inspector enabled via:
Start the proxyios_webkit_debug_proxy
Using with DevToolsios_webkit_debug_proxy can be used with many tools such as Chrome DevTools and Safari Web Inspector. Chrome DevtoolsTo use Chrome DevTools it's the recommendation to use the RemoteDebug/remotedebug-ios-webkit-adapter project, which has instructions on how to setup Chrome to remote debug iOS devices, much similar to Android debugging. The reason is that in recent versions of Chrome and Safari there're major discrepancies between Chrome Remote Debugging Protocol and Webkit Inspector Protocol, which means that newer versions of Chrome DevTools aren't compatible with Safari. Safari Web InspectorYou can use Safari Web Inspector extracted from Webkit sources, e.g. artygus/webkit-webinspector. Firefox DevTools via ValenceAnother option is mozilla/valence which enables Firefox DevTools to be used with iOS. ConfigurationView and inspect debuggable tabsNavigate to localhost:9221. You'll see a listing of all connected devices. Click through to view tabs available on each, and click through again to open the DevTools for a tab. Setting the DevTools UI URLChrome DevTools UI used as a default frontend:
You can use the # examples:
ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html
ios_webkit_debug_proxy -f ~/chromium/src/third_party/WebKit/Source/devtools/front_end/inspector.html
ios_webkit_debug_proxy -f http://foo.com:1234/bar/inspector.html If you use Just the same, you can apply the appropriate port (9222) and page (2) values below.
The To disable the frontend proxy, use the Port assigmentThe default configuration works well for most developers. The device_id-to-port assignment defaults to:
If a port is in use then the next available port will be used, up to the range limit. The port assignment is first-come-first-serve but is preserved if a device is detached and reattached, assuming that the proxy is not restarted, e.g.:
The port assignment rules can be set via the command line with
where "null" represents the device list. The following example restricts the proxy to a single device and port:
Troubleshootingundefined reference to symbol 'log10@@GLIBC_2.2.5'/usr/bin/ld: ios_webkit_debug_proxy-char_buffer.o: undefined reference to symbol 'log10@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line Run this before error while loading shared libraries: libimobiledevice.so.6ios_webkit_debug_proxy: error while loading shared libraries: libimobiledevice.so.6: cannot open shared object file: No such file or directory Run ssl sendq retry failed: Undefined error: 0should only happen with versions > 1.8.5, make sure ios-webkit-debug-proxy is built with same version of libssl that libimobildevice was built with idevice_id not foundThe could not start com.apple.webinspector! successRemove and rebuild libimobiledevice. Could not connect to lockdownd (or doesn't work with iOS10+)
Check the device for a prompt to trust the connected computer. Choose "Trust" and try again.
or
Make sure you're using latest version of ios-webkit-debug-proxy Inspectable pages list is empty for iOS >= 12.2Make sure you're using latest version of ios-webkit-debug-proxy Can not see Simulator
If no luck so far...Lastly, always try replugging in the USB cable. IWDP ClientsJSON-formatted APIs are provided for programmatic clients.
See the examples/README for example clients: NodeJS, C, clientside JS, websocket and more. DesignView the design document for an overview of the source layout and architecture. License and CopyrightGoogle BSD license https://developers.google.com/google-bsd-license Copyright 2012 Google Inc. [email protected] The proxy uses the following open-source packages: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论