ipa在線下載安裝(itms-services)
https://blog.csdn.net/xlyrh/article/details/79078271
要求:
1、ipa的下載地址放到plist的文件中,鏈接指定plist(plist格式見下文)
2、plist的鏈接要求一定是https的,而且必須是公網ssl,自簽名及免費的https不可用。
3、鏈接格式要求一定是符合蘋果規范的,itms-services://?action=download-manifest&url=https://****/***.plist
強調必須是公網ssl的https,其它不符合格式網址會報錯,提示域名無法連接。
目前可以使用https測試用的域名:https://raw.githubusercontent.com/ (2018-01-16 測試通過)
具體方法:將plist上傳到github上,查看plist內容頁面上右上角點擊“Raw”
使用該地址鏈接格式為https://raw.githubusercontent.com/用戶名/項目名/master/xxxx.plist
拼接鏈接:itms-services://?action=download-manifest&url=https://raw.githubusercontent.com/用戶名/項目名/master/xxxx.plist
在iphone手機中打開Safari,訪問該鏈接,提示“在"iTunes"中打開鏈接嗎?",點擊打開
提示“raw.githubusercontent.com”要安裝“XXXXX”,點擊安裝即可在線下載安裝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>http://xxxxxxxxxxxxxxxxxxx/xxx.ipa</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>http://xxxxxxxxxxxxxxxxxx.png</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>http://xxxxxxxxxxxxxxxxxx.png</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>com.xxxx.demo</string> <key>bundle-version</key> <string>1.0.0</string> <key>kind</key> <string>software</string> <key>title</key> <string>XXXX App download</string> </dict> </dict> </array> </dict> </plist>
============= End