我是用 ubutu
建一个临时目录 tmp
目录下面有
Applications //该目录用例存app
my.app //你的app
DEBIAN
control //一个文本文件
control 的内容大概如下
Package: com.larry.li
Name: larry
Version: 0.1-1
Description: sendSms
Section: app
Depends: firmware (>= 4.3)
Priority: optional
Architecture: iphoneos-arm
Author: larry <http://weibo.com/seek5love/>
Homepage: http://weibo.com/seek5love
Icon: file:///Applications/MY2.app/Icon.png
Maintainer: larry <http://weibo.com/seek5love>
退出至tmp的上层目录
生成deb 输入命令: dpkg-deb -b tmp my.deb
会生成deb文件在该目录
用 ssh 连上手机,上传my.deb到手机目录(手机上要安装OpenSSH cydia 上搜索)
安装 在cydia 上搜索安装 MobileTermina (手机root 用户默认密码 alpine)
在 deb 文件所在目录下
安装deb 下载执行 dpkg -i my.deb //你的deb包名字
这时安装好的软件不一定能运行,就付权限吧
root 用户登录,输入alpine
正确输入后最后面一个提示符会变成“#”号,
输入
chmod -R 777 /private/var/stash/Applications.xxxxxx/xxxx.app (xxxx.app就是你要运行app的文件夹)
chmod -R 777 /private/var/stash/Applications.xxxxxx/Documents,点return。
chmod -R 777 /private/var/mobile/Documents,点return。
再次进入iPhone你就可以看见你安装的软件或游戏图标