<?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://cloud.189.cn/download/client/iOS/cloud189_1.1.1.ipa</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>請填上你的開發者證書用戶名</string> <key>bundle-version</key> <string>版本</string> <key>kind</key> <string>software</string> <key>title</key> <string>請填上標題</string> </dict> </dict> </array> </dict> </plist>
itms-services://?action=download-manifest&url=https://plist文件的地址
<a href="itms-services://?action=download-manifest&url=https://plist文件的地址">安裝</a>
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <htmlxmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/> 5 <title>應用名字</title> 6 </head> 7 <body> 8 <h1style="font-size:80pt">若是點擊沒法下載安裝,請複製超連接到瀏覽器中打開<h1/> 9 <h1style="font-size:100pt"> 10 <a title="iPhone"href="itms-services://?action=download-manifest&url=https://dn-你的空間名字.qbox.me//你的.plist">點擊下載 </a><h1/> 11 </body> 12 </html> 13
<script> var url ="https://plist文件地址"; window.location ="itms-services://?action=download-manifest&url="+ url; </script>
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-services://?action=download-manifest&url=https://plist文件的地址"]];
最後纔是重點,咱們沒必要這麼麻煩本身部署這麼多文件,徹底能夠藉助第三方應用內測分發平臺,比較出名的有下面幾個:html
應用測試發佈平臺前端
fir.im - 免費應用內測託管平臺|iOS應用Beta測試分發|Android應用內測分發ios
蒲公英 - 免費的應用託管平臺|App應用衆測分發github
Pre.im - APP內測託管平臺首選 - Beta測試 - 免費的應用內測託管平臺瀏覽器
TestFlight Beta Testing - App Store - Apple Developer服務器
https://developer.apple.com/testflight/app
試用了一下蒲公英,真是至關方便,只要註冊一個賬號,將ipa文件上傳,就會當即生成一個下載地址以及引導下載頁面
經過查看api能夠看到,蒲公英也是經過上面的方式安裝的,只是給開發者省了很多時間
若是你嫌蒲公英的下載引導頁面很差看,你能夠本身作一個html頁面,直接是用上面的itms-services地址。