编译安装libimobiledevice

作者: 大明白 | 来源:发表于2015-01-30 10:00 被阅读10848次

    编译安装libimobiledevice

    在windows上大家可以使用iTunes来与iPhone进行通信,但是Linux上没有这类的官方软件,所以一些爱好者就破解了iTunes的通信协议,然后在Linux上实现了该协议,也就是libimobiledevice啦~~

    下面为大家介绍Ubuntu下如何编译libimobiledevice

    准备环境

    sudo apt-get install build-essential automake autoconf git cmake pkg-config libtool
    

    安装libplist

    sudo apt-get install libxml2-dev python-dev python-pip
    sudo pip install cython
    git clone https://github.com/libimobiledevice/libplist.git
    cd libplist
    ./autogen.sh
    make
    sudo make install
    

    安装libusbmuxd

    git clone https://github.com/libimobiledevice/libusbmuxd.git
    cd libusbmuxd
    ./autogen.sh
    make
    sudo make install
    

    安装libimobiledevice

    git clone https://github.com/libimobiledevice/libimobiledevice.git
    cd libimobiledevice
    ./autogen.sh
    make
    sudo make install
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    

    安装usbmuxd

    sudo apt-get install libusb-dev libusb-1.0-0-dev
    git clone http://git.sukimashita.com/usbmuxd.git
    cd usbmuxd
    ./autogen.sh
    make
    sudo make install
    

    安装ideviceinstaller

    sudo apt-get install libzip-dev
    git clone https://github.com/libimobiledevice/ideviceinstaller.git
    cd ideviceinstaller
    ./autogen.sh
    make
    sudo make install
    

    安装ifuse

    sudo apt-get install libfuse-dev
    git clone https://github.com/libimobiledevice/ifuse.git
    cd ifuse
    ./autogen.sh
    make
    sudo make install
    

    各种命令

    ideviceinfo

    idevicediagnostics

    休眠 idevicediagnostics sleep

    关机 idevicediagnostics shutdown

    重启 idevicediagnostics restart

    ideviceinstaller

    列出用户安装的 ideviceinstaller -l -o list_user

    卸载 ideviceinstaller -u com.baidu.map

    安装 ideviceinstaller -i xxx.ipa

    idevicedate

    显示log idevicesyslog

    相关文章

      网友评论

      • LewisWeng:感谢楼主,如果ideviceinstaller在make的时候报错 error: comparison between signed and unsigned integer ,修改目录下configure文件,搜索 -Werror ,找到
        list="-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g"
        去掉-Werror即可
        LTF:@LewisWeng 不是,是连接IOS进行通信
        LewisWeng:@LTF ? Android使用adb就行了
        LTF:有android 资料吗
      • Vxer_Lee:sudo apt-get install openssl
        sudo apt-get install libssl-dev
      • 北京已北:安装ideviceinstaller时依赖 libzip 需要安装 libzip-dev

      本文标题:编译安装libimobiledevice

      本文链接:https://www.haomeiwen.com/subject/tjelxttx.html