<?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地址。