Skip to content

Instantly share code, notes, and snippets.

@pgorsira
Last active August 29, 2015 14:03
Show Gist options
  • Save pgorsira/196fae163fc8270eac7b to your computer and use it in GitHub Desktop.
Save pgorsira/196fae163fc8270eac7b to your computer and use it in GitHub Desktop.
Remote developer console for iOS 7 Mobile Safari in Ubuntu 13.10
# This should not be necessary in 14.04
# be sure to uninstall any previous versions of libimobiledevice, usbmuxd, libplist that were installed by your package manager
# get reqd tools/dependencies
sudo apt-get install libxml2 make automake autoconf libtool pkg-config gcc
mkdir -p ~/ios-dev-console
# install libplist
cd ~/ios-dev-console
git clone https://github.com/libimobiledevice/libplist.git
cd libplist
./autogen.sh
make
sudo make install
# install libusbmxd
cd ~/ios-dev-console
git clone https://github.com/libimobiledevice/libusbmuxd.git
cd libusbmxd
./autogen.sh
make
sudo make install
# install libimobiledevice
cd ~/ios-dev-console
git clone https://github.com/libimobiledevice/libimobiledevice.git
cd libimobiledevice
./autogen.sh
make
sudo make install
# install usbmuxd (not the same as libusbmuxd)
cd ~/ios-dev-console
git clone https://github.com/libimobiledevice/usbmuxd.git
cd usbmuxd
./autogen.sh
make
sudo make install
# for me, this was required for certain libimobiledevice tools to work
sudo ln -s /usr/local/lib/libplist.so /usr/local/lib/libplist.so.1
# put this in your ~/.bashrc to avoid having to do it everytime
export LD_LIBRARY_PATH=/usr/local/lib
# make sure passcode lock is disabled on your ios7 device
# plug in the device, unlock it, and tap 'trust'
# see if it is detected
idevice_id -l
# now install ios-webkit-debug-proxy
cd ~/ios-dev-console
git clone https://github.com/google/ios-webkit-debug-proxy.git
cd ios-webkit-debug-proxy
./autogen.sh
./configure
make
sudo make install
# start the proxy
ios_webkit_debug_proxy
# head to http://localhost:9221/ and start debugging your webapps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment