LoginSignup
7

More than 5 years have passed since last update.

imobiledevice on Mac OS X

Last updated at Posted at 2013-07-18

これのこと。Cocoaのプライベートフレームワーク相当のことがいろいろできる。

Cython

Pythonバインディング不要ならやらなくてよし

pip install cython

cython -h
    Cython (http://cython.org) is a compiler for code written in the
    Cython language.  Cython is based on Pyrex by Greg Ewing.

brew install libplist  --with-python

Cythonとlibplistのバイディングが認識されればデフォルトで--with-pythonでlibimobiledeviceがインストールされる

libimobiledevice

git clone http://git.sukimashita.com/libimobiledevice.git

brew install usbmuxd libxml2 libplist

PKG_CONFIG_PATH=/usr/local/Library/ENV/pkgconfig/10.8 ./configure --prefix=~/opt/libimobiledevice

PKG_CONFIG_PATHは指定しないとhomebrewでインストールしたものが探せてなかった。prefixはお好みで

CLI

idevice_id --list

接続してるiOSデバイスのUDIDを出力する

idevicescreenshot

端末のスクリーンショットを撮って.tiff形式で保存する(-u UDID で端末を指定)

他idevice*のコマンドがあるので--help参照

idevice_id
idevicebackup
idevicebackup2
idevicedate
idevicedebugserverproxy
idevicediagnostics
ideviceenterrecovery
ideviceimagemounter
ideviceinfo
idevicepair
ideviceprovision
idevicescreenshot
idevicesyslog

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7