苹果ipa安卓包下载的时候不能像安卓输出文件直接安装到手机上,需要通过plist文件。下面方法
1.服务器申请ssl证书 ,获取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下载文件访问地址.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>青橘应用</string> <key>title</key> <string>青橘应用</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.之后就可以通过自己服务器下载苹果ipa安卓包拉 !