Skip to content

Instantly share code, notes, and snippets.

@justinmklam
Last active March 6, 2019 16:54
Show Gist options
  • Save justinmklam/f813bbe13b865a17192f3eca9ac2a38f to your computer and use it in GitHub Desktop.
Save justinmklam/f813bbe13b865a17192f3eca9ac2a38f to your computer and use it in GitHub Desktop.
Install steps for dependencies and toolkit to enable debugging of iOS on Linux (or Windows).
# Source: https://github.com/RemoteDebug/remotedebug-ios-webkit-adapter
#================================
#=== Install libimobiledevice ===
#================================
# Source: https://github.com/libimobiledevice/libimobiledevice
sudo apt install autoconf autotools-dev -y
# Clone the required repos
git clone https://github.com/libimobiledevice/libplist
git clone https://github.com/libimobiledevice/libusbmuxd
git clone https://github.com/libimobiledevice/libimobiledevice
# Install libplist
cd libplist
./autogen.sh
make
sudo make install
# Install libusbmuxd
cd ../libusbmuxd
./autogen.sh
make
sudo make install
# Install libimoviledevice
cd ../libimobiledevice
./autogen.sh
make
sudo make install
#======================================
#=== Install iOS WebKit Debug Proxy ===
#======================================
# Source: https://github.com/google/ios-webkit-debug-proxy#installation
sudo apt-get install autoconf automake libusb-dv libusb-1.0-0-dev libplist-dev libplist++-dev usbmuxd libtool
git clone https://github.com/google/ios-webkit-debug-proxy.git
cd ios-webkit-debug-proxy
./autogen.sh
make
sudo make install
# Use this command to check the attached device (since linux requires usbmuxd daemon, which autostarts)
idevice_id -l
#==============================================
#=== Install RemoteDebug iOS WebKit Adapter ===
#==============================================
sudo apt install npm -y
sudo npm install remotedebug-ios-webkit-adapter -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment