libimobiledevice命令
Mac 安装
1. 安装HomeBrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
参考:http://brew.sh/
2. 终端执行如下命令
2.1 brew install libimobiledevice
2.2 brew install Caskroom/cask/osxfuse
2.3 brew install ifuse
2.4 brew install ideviceinstaller
openSUSE13.2 安装
http://download.opensuse.org/repositories/home:/FunkyM:/iOS/openSUSE_13.1/ios-device-support.ymp
http://download.opensuse.org/repositories/home:/FunkyM:/iOS/openSUSE_13.2/ios-device-support.ymp
openSUSE命令执行有问题的话,先重启系统,执行
idevicepair unpair
idevicepair pair
1.打印app列表
ideviceinstaller -l
2.选择要导出的appid,如com.youku.YouKu
3. 打包并导出app到指定文件夹
ideviceinstaller -a com.tencent.xin -o copy=~
导出成功会看到
Archive - Complete
Copying 'ApplicationArchives/com.youku.YouKu.zip' --> '/Users/Travel/Desktop/idevice/com.youku.YouKu.ipa'... DONE.
4.删除设备上的APP
ideviceinstaller -U com.youku.YouKu
5.安装App
ideviceinstaller -i /home/aaron/com.youku.YouKu.ipa
6. 访问沙盒 ifuse -u f93f5ade2ab2838d051e9e3479bd4ef5666c3a78 --container com.travel.chu.icsdk ~/Desktop/sandbox
1. 功能例子
1.1 获取 UDID
idevice_id -l
1.2 截屏并保存到当前目录
ideviceimagemounter ./DeveloperDiskImage.dmg ./DeveloperDiskImage.dmg.signature // 打开文件访问
idevicescreenshot -u f93f5ade2ab2838d051e9e3479bd4ef5666c3a78
1.3 重启设备
idevicediagnostics restart
1.4 安装APP
ideviceinstaller -i /Users/aaron/书香苏州_20150104.ipa
1.5 卸载APP
ideviceinstaller -U ideviceinstaller -U com.szsmk.bookofsuzhou
此处注意在Ubuntu上基于libimobiledevice4,需使用(小写u)ideviceinstaller -u com.test.app
1.6 获取APP列表及APP信息
ideviceinstaller -l
1.7 获取设备信息
ideviceinfo
31824949d15de007d24633be0e33a61228a764c0 iPhone 6
9e58d623c1ecda61a1bf8b239924cb004fa825da iPhone 4s
f93f5ade2ab2838d051e9e3479bd4ef5666c3a78 iPad 2
获取日志
idevicesyslog > log.txt &
遇到的坑:使用命令时提示:
ideviceinstaller fails with “Could not connect to lockdownd. Exiting.”
解决方法:卸载重装
brew uninstall ideviceinstaller
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
brew install ideviceinstaller
brew link --overwrite ideviceinstaller
libimobiledevice命令的更多相关文章
- Mac版最详细的Flutter开发环境搭建
上周任务不多,闲来无事想学习一下flutter耍一耍,发现flutter的环境搭建步骤还是很繁琐的,官网的搭建教程只是按步骤让你进行操作,中间出现的问题完全没有提及,对我这种没搞过原生开发的小白来说超 ...
- 【IOS】libimobiledevice常用命令
libimobiledevice 是一个跨平台的软件库,支持 iPhone®, iPod Touch®, iPad® and Apple TV® 等设备的通讯协议. 安装 命令: brew ins ...
- Mac上编译libimobiledevice库
0.准备工作: 使用brew或Mac Ports安装:libgnutls or openssl. libplist .libusb.libusbmuxd 1.下载代码: 下载地址:https://gi ...
- iOS开发的另类神器:libimobiledevice开源包【类似android adb 方便获取iOS设备信息】
简介 libimobiledevice又称libiphone,是一个开源包,可以让Linux支持连接iPhone/iPod Touch等iOS设备.由于苹果官方并不支持Linux系统,但是Linux上 ...
- Appium Mac 命令行安装
试过很多方法都失败,打算用命令行方式安装. 准备工作: 从 https://github.com/appium/appium下载appium版本的源码(.tar) 详见github_Appium1.6 ...
- macos 命令行安装 ipa
macos 命令行安装 ipa 苹果发神经后itunes已经无法在安装app了,如果有知道的兄弟可以告诉我啊 ideviceinstaller 使用这个开源项目可以在macos下安装app brew ...
- mac 命令行安装软件
第一步需要在mac上安装brew工具 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/mas ...
- Expo大作战(六)--expo开发模式,expo中exp命令行工具,expo中如何查看日志log,expo中的调试方式
简要:本系列文章讲会对expo进行全面的介绍,本人从2017年6月份接触expo以来,对expo的研究断断续续,一路走来将近10个月,废话不多说,接下来你看到内容,将全部来与官网 我猜去全部机翻+个人 ...
- libimobiledevice --Mingw32交叉编译
本文只描述 windows环境下的使用情况,linux平台基本雷同. 一.配置编译环境. (1)操作系统 :Windows10 (64bit). (2)类unix环境:Cygwin(64bit) 下载 ...
随机推荐
- 使用ResourceDictionary管理Logical Resources
WPF整理-使用ResourceDictionary管理Logical Resources “Logical resources may be of various types, such as br ...
- 学习ORM框架—hibernate(三):跟踪持久化对象状态,掌握对象持久化
准备工作 在上篇博客中学习ORM框架—hibernate(一):初识hibernate,通过简单的实例说明O和R的映射过程.本篇博客将要介绍hibernate中持久化对象的状态,并使用hibernat ...
- [ios2]iphone编程中使用封装的NSLog来打印调试信息 【转】
使用NSLog的一个风险是:它的运行会占用时间和设备资源. 简单而粗暴的解决方案是:在release前,将所有的NSLog注释掉.简单有效,但副作用是:下次你要调试时,又得将NSLog一个个取消注释. ...
- (细节控)swift3.0与融云IMKIT开发问题(一部分) override func onSelectedTableRow Method does not override any method from its superclass
原官网文档方案如下,在swift3.0的情况下出现 override func onSelectedTableRow Method does not override any method from ...
- 快速排序算法C#实现
最近想把几大经典的排序算法系统的整理过一遍,写下笔记,算是复习吧!! 1.快速排序. 快速排序由C. A. R. Hoare在1962年提出.它的基本思想是:通过一趟排序将要排序的数据分割成独立的两部 ...
- 国内的阿里云MAVEN仓库,速度很快
配置很简单,修改conf文件夹下的settings.xml文件,添加如下镜像配置: <mirrors> <mirror> <id>alimaven</id&g ...
- [HMLY]11.iOS函数式编程的实现&&响应式编程概念
简介 本篇主要回顾一下--iOS函数式编程 && 响应式编程概念 ,如何一步步实现函数式编程的过程,对阅读Masonry && SnapKit源码有一定的帮助. 作为一 ...
- qdoc 写法
Qdoc 注释 Qdoc注释有一些命令, 能够对文档进行组织. QDoc能识别以下3种类型的命令 主题(topic command) 主题命令确定了文档的元素,例如C++类(class),函数(fun ...
- IOS数据库操作SQLite3使用详解(转)
iPhone中支持通过sqlite3来访问iPhone本地的数据库.具体使用方法如下1:添加开发包libsqlite3.0.dylib首先是设置项目文件,在项目中添加iPhone版的sqlite3的数 ...
- Web框架——Django笔记
Web框架--Django笔记 MVC和MTV MVC:Model.View.Controller MTV:Model.Template.View Django--MTV 1.创建Django程序 ...