-
一、明确几个概念
1、企业版IDP: 即iOS Development Enterprise Program。注意是$299/Year那种,并不是$99/Year的那种
2、In House:是指企业内发布,仅限企业内部人员使用。
二、In-House 特点:
1、不能发布到AppleStore进行销售
2、不需要Apple评审
3、可以使用任何一支的私有API
4、可以安装到任何苹果设备上,无需任何签名和认证
5、用户安装只要一个ipa文件,无需证书和签名文件
三、证书的生成过程
1、生成开发和发布证书(cer 文件),和$99账号一样
2、创建App ID,和$99账号一样
3、创建开发mobileprovision文件,和$99账号一样
4、创建发布(in-house)mobileprovision文件,这个如下图和$99账号不同。AdHoc的发布方式和$99是一样的,这里我们选择的In House
5、把刚刚生成的证书和签名文件都安装后,就可以开始我们的发布了。
四、In-House打包
简单过程:Product-->Archive-->(Validate、Submit、Export) Export-->Save for Enterprise Deployment 点击Next,选择对应的企业证书后点击Export 即可成功。(Xcode 6以下ipa 和 plist 同时生成,Xcode6以上 只生成ipa,可copy之前的plist 修改即可)。
五、企业网页服务器分发
1、按照三、四 步骤 创建ipa 和 plist ,把打包的ipa 放到服务器上,ios设备通过访问网址,即可安装
2、创建web页面 (注意:ios7 plist 之前的版本用http,但ios7之后必须使用https)
01.
<!DOCTYPE html>
02.
<html>
03.
<head>
04.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=gb2312"
>
05.
<meta name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
06.
<title>Install Geoloqi</title>
07.
<style type=
"text/css"
>
08.
body {
09.
background: url(bkg.png) repeat #c5ccd4;
10.
font-family: Helvetica, arial, sans-serif;
11.
}
12.
.congrats {
13.
font-size: 16pt;
14.
padding: 6px;
15.
text-align: center;
16.
}
17.
.step {
18.
background: white;
19.
border: 1px #ccc solid;
20.
border-radius: 14px;
21.
padding: 4px 10px;
22.
margin: 10px
0
;
23.
}
24.
.instructions {
25.
font-size: 10pt;
26.
}
27.
.arrow {
28.
font-size: 15pt;
29.
}
30.
table {
31.
width:
100
%;
32.
}
33.
</style>
34.
</head>
35.
<body>
36.
37.
<div
class
=
"congrats"
>点击下面图标下载 XXX-App</div>
38.
39.
<div
class
=
"step"
>
40.
<table><tr>
41.
<td
class
=
"instructions"
>安装IOS<br />XXX-App</td>
42.
<td width=
"24"
class
=
"arrow"
>→</td>
43.
<td width=
"72"
class
=
"imagelink"
>
44.
<a href=
"itms-services://?action=download-manifest&;url=https://www.xxx.com/TestInHouse/raw/master/xxx-app.plist"
>
45.
<img src=
"icon.png"
height=
"72"
width=
"72"
/>
46.
</a>
47.
</td>
48.
</tr></table>
49.
<table><tr>
50.
<td
class
=
"instructions"
>安装<a href=
"http://www.it165.net/pro/ydad/"
target=
"_blank"
class
=
"keylink"
>Android</a><br />作业盒子XXX-App</td>
51.
<td width=
"24"
class
=
"arrow"
>→</td>
52.
<td width=
"72"
class
=
"imagelink"
>
53.
<a href=
"http://www.xxx.com/xxx.apk"
>
54.
<img src=
"icon.png"
height=
"72"
width=
"72"
/>
55.
</a>
56.
</td>
57.
</tr></table>
58.
</div>
59.
<script>
60.
function isWeiXin(){
61.
var ua = window.navigator.userAgent.toLowerCase();
62.
if
(ua.match(/MicroMessenger/i) ==
'micromessenger'
){
63.
return
true
;
64.
}
else
{
65.
return
false
;
66.
}
67.
}
68.
if
(isWeiXin()) {
69.
alert(
"请用<a href="
http:
//www.it165.net/edu/ewl/" target="_blank" class="keylink">浏览器</a>打开!");
70.
}
71.
</script>
72.
</body>
73.
</html>
3、部署和测试 在手机上输入指定的网址,即可实现安装。plist 文件如下:
plist 外站链接可选择: https://git.oschina.net,, 通过新建项目-->点+ 填入文件名-->把plist文件拷贝到内容区-->提交 即可.
iosinHouse发布应用
最新推荐文章于 2019-08-09 13:59:59 发布