目标:iOS应用通过URL地址来安装
准备:
1.bundle identifier
2.应用图标
3.下载地址
完整的下载地址是
itms-services://?action=download-manifest&url=https://www.yourdomain.cn/download/2.1.0-10637/test.116d7.56d82df.20170122.test.domain.cn.ipa.plist
其中,配置test.116d7.56d82df.20170122.test.domain.cn.ipa.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://www.yourdomain.cn/download/2.1.0-10637/test.116d7.56d82df.20170122.test.domain.cn.ipa.plist</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>http://www.yourdomain.cn/d/images/logo_full.png</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>http://www.yourdomain.cn/d/images/logo_icon.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.company.test</string>
<key>bundle-version</key>
<string>2.1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>我的应用</string>
</dict>
</dict>
</array>
</dict>
</plist>
配置正确的plist文件后,把这个完整地址粘贴到iPhone Safari,然后打开就可以下载了
注意:其中域名,logo,url,bundle-identifier,名称,一定要配置正确了