关键词:企业签,ipa, plist,html,itms-services:///?javascript
流程:把签名好的ipa包及配置好的plist文件部署到服务器上,生成路径。(服务器能够有本身搭建https的,也能够部署到开通对象存储功能的云服务器上,以阿里云服务器对象存储举例。)html
具体步骤:java
1.获取签名ipa包:iOS端提供ipa包和appid给签名方签名,对方会给你一个已签名的ipa包。ios
2.将ipa包上传到阿里云服务器上,获得一个https://~.ipa的路径。服务器
3.将https://~.ipa路径,及应用版本号,bundleid,图片信息(好像能够不填)配置到本地建立的plist文件中。app
4.将plist文件上传到服务器获得一个https://~.plist的路径(plist必定要用https!!!)ui
5.将https://~.plist路径配置到本地HTML文件中,阿里云
6.将HTML文件上传到服务器,获得https://~.html路径。url
7.经过safari打开https://~.html路径,就能下载该企业签应用spa
备注:plist文件模板 (倒数第二行写应用名称)
HTML文件模板:替换掉倒数第四行url=的路径就好了
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <title>ios-download</title> <meta http-equiv="Content-Type" content="text/HTML; charset=utf-8"> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /> <script type="text/javascript"> function doLocation(url) { var a = document.createElement("a"); if(!a.click) { window.location = url; return; } a.setAttribute("href", url); a.style.display = "none"; document.body.appendChild(a); a.click(); } </script> </head> <body> <script type="text/javascript"> doLocation('itms-services:///?action=download-manifest&url=https://joke-filesystem.oss-cn-shenzhen.aliyuncs.com/iOS-test/sxdw.plist'); // 替换掉url=https://~.plist </script> </body> </html>
或者不经过网页直接安装
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-services://?action=download-manifest&url=https://~~~.plist"]];