Saturday, June 04, 2016

Take a screenshot of iOS phone using Mac OSX

Take a screenshot of iOS phone using Mac OSX

libplist -> libusbmuxd -> libimobiledevice -> usbmuxd, ifuse,
ideviceinstaller, ...



libplist:



A library to handle Apple Property List format in binary or XML

sudo port install libplist


usbmuxd:



A socket daemon to multiplex connections from and to iOS devices

Install usbmuxd on Mac OSX
App name: usbmuxd
App description: USB multiplexor daemon for iPhone and iPod Touch devices
App website: http://www.libimobiledevice.org

Press Command+Space and type Terminal and press enter/return key.
Run in Terminal app:
ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)" <
/dev/null 2> /dev/null
and press enter/return key. Wait for the command to finish.
Run:
brew install usbmuxd


libusbmuxd:



A client library to multiplex connections from and to iOS devices

https://github.com/libimobiledevice/libusbmuxd
To compile run:
./autogen.sh
make
sudo make install

pkg-config --print-variables libusbmuxd

imobiledevice issue due to libusbmuxd not found
thomasyounsi@Thomass-MacBook-Pro:~/imobiledevice/libimobiledevice-1.2.0$
pkg-config --print-variables libusbmuxd

Package libusbmuxd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusbmuxd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusbmuxd' found

echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig

thomasyounsi@Thomass-MacBook-Pro:~/imobiledevice/libimobiledevice-1.2.0$
pkg-config --variable pc_path pkg-config

/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig

thomasyounsi@Thomass-MacBook-Pro:~/imobiledevice/libimobiledevice-1.2.0$

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:

locate libusbmuxd | grep '\.pc'

/usr/local/Cellar/usbmuxd/1.0.10/lib/pkgconfig/libusbmuxd.pc
/usr/local/lib/pkgconfig/libusbmuxd.pc

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/usbmuxd/1.0.10/lib/pkgconfig/


libimobiledevice:


A cross-platform software protocol library and tools to communicate with iOS® devices natively


sudo ./autogen.sh or ./configure
make
sudo make install

Start XCode so that the iPhone get's mounted

run idevicescreenshot to get a nice ScreenShot in tiff format!!!





https://github.com/libimobiledevice/libimobiledevice/blob/master/tools/idevicescreenshot.c

No comments: