苹果版app下载的时候不能像安卓输出文件直接下载,下面为大家介绍一种plist下载方法
1.你的服务器必须有https协议访问
2.准备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>https://ipa下载文件访问地址qq.ipa</string></dict><dict><key>kind</key><string>display-image</string><key>needs-shine</key><true/><key>url</key><string>图标地址http://57*57.png</string></dict><dict><key>kind</key><string>full-size-image</string><key>needs-shine</key><true/><key>url</key><string>图标地址http://57*57.png</string></dict></array><key>metadata</key><dict><key>bundle-identifier</key><string>应用包名</string><key>bundle-version</key><string>0.0.1</string><key>kind</key><string>software</string><key>subtitle</key><string>共享e家</string><key>title</key><string>共享e家</string></dict></dict></array></dict>
</plist>
3.将这个plist文件和你的ipa安装文件上传到服务器
4.页面代码https://xxx.com/pl.plist为你服务器上的plist文件
<!doctype html>
<html >
<head><meta charset="UTF-8"><meta name="view-port" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=0"><title>下载</title>
</head>
<body> <a href="itms-services://?action=download-manifest&url=https://xxx.com/pl.plist">下载</a>
</body>
</html>
5.点击下载就ok了