对于越狱设备,我们可以在线安装ipa,无需下载ipa再通过其他软件来安装。实现这个功能很简单,首先你需要一个web服务器,可供下载ipa和plist文件。然后准备plist。最后公布下载地址,点击下载地址就可以安装了,会在桌面上显示您的程序图标并且开始下载,就跟从AppStore下载的一样。
plist示例:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://xxx.com/xx.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>http://xxx.com/xx.png</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>http://xxx.com/xx-full.png</string>
</dict>
</array><key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.yoursoftid</string>
<key>bundle-version</key>
<string>1.01</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>Your App Name</string>
</dict>
</dict>
</array>
</dict>
</plist>
plist中比较重要的是software-package这个url指向的是ipa的下载地址,plist文件好了,下面需要给个链接告诉plist文件的位置。
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>iOS APP 越狱版一键安装</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport">
</head>
<body>
<a href="itms-services://?action=download-manifest&url=http://xxx.com/xxx.plist">通过越狱的iOS设备浏览器访问本页,点这儿一键安装 xxx.ipa。</a>
<br><br>
<br>
</body></html>
通过item-services协议,越狱设备会自动解析plist文件,然后下载指定的ipa,从而完成在线安装。当然更新版本时很方便,把
itms-services://?action=download-manifest&url=http://xxx.com/xxx.plit
直接传给客户端,用浏览器打开这个地址就会自动更新下载了,方便吧!
官方参考文档地址:http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html
在线安装IPA教程:轻松为越狱设备更新应用
本文介绍如何使用web服务器在线安装IPA文件,无需下载即可为越狱设备更新应用。通过设置plist文件和利用item-services协议,实现一键安装。此方法适用于已越狱的iOS设备,提供简便的更新流程。
6933

被折叠的 条评论
为什么被折叠?



