您的位置:首页 > 产品设计 > UI/UE

使用fruitstrap实现命令行把最新IPA包更新到iPhone设备上

2016-03-11 16:29 483 查看


Fruitstrap是一个命令行工具,使用个人开发者证书打IPA包,通过shell命令直接把IPA包安装到连接Mac的iPhone设备上。


Requirements

Mac OS X. Tested on Snow Leopard only.
You need to have a valid iPhone development certificate installed.
Xcode must be installed, along with the SDK for your iOS version.


Usage

fruitstrap [-d] -b <app> [device_id]

Optional
-d
flag launches a remote GDB session after the app has been installed.
<app>
must be an iPhone application bundle, not an IPA.
Optional
device_id
; useful when you have more than one iPhone/iPad connected.



一、安装与使用

①git clone git://github.com/ghughes/fruitstrap.git

②cd fruitstrap

③cat makefile,把gcc这行命令复制出来



④gcc -o fruitstrap -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks fruitstrap.c 如果在当前目录下出现fruitstrap文件就说明执行成功。

⑤./fruitstrap -b /Users/One/Desktop/App\ ipa/Lefeng_*.ipa 使用该命令即可把IPA包安装到iPhone上



二、结合jenkins自动打包,可实现自动安装最新包到iPhone设备上。

https://github.com/ghughes/fruitstrap
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: