ios inHouse 公布应用

一、明白几个概念

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 改动就可以)。 

五、企业网页server分发

1、依照三、四 步骤 创建ipa 和 plist ,把打包的ipa 放到server上,ios设备通过訪问网址。就可以安装

2、创建web页面 (注意:ios7 plist 之前的版本号用http,但ios7之后必须使用https)

    <!DOCTYPE html>  
    <html>  
    <head>  
            <meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />   
            <title>Install Geoloqi</title>  
            <style type="text/css">  
                    body {  
                            background: url(bkg.png) repeat #c5ccd4;  
                            font-family: Helvetica, arial, sans-serif;  
                    }  
                    .congrats {  
                            font-size: 16pt;  
                            padding: 6px;  
                            text-align: center;  
                    }  
                    .step {  
                            background: white;  
                            border: 1px #ccc solid;  
                            border-radius: 14px;  
                            padding: 4px 10px;  
                            margin: 10px 0;  
                    }  
                    .instructions {  
                            font-size: 10pt;  
                    }  
                    .arrow {  
                            font-size: 15pt;  
                    }  
                    table {  
                            width: 100%;  
                    }  
            </style>  
    </head>  
    <body>  
       
    <div class="congrats">点击以下图标下载 XXX-App</div>  
       
    <div class="step">  
            <table><tr>  
                    <td class="instructions">安装IOS<br />XXX-App</td>  
                    <td width="24" class="arrow">→</td>  
                    <td width="72" class="imagelink">  
                            <a href="itms-services://?action=download-manifest&url=https://www.xxx.com/TestInHouse/raw/master/xxx-app.plist">  
                                    <img src="icon.png" height="72" width="72" />  
                             </a>  
                    </td>  
            </tr></table>  
<table><tr>  
                    <td class="instructions">安装Android<br />作业盒子XXX-App</td>  
                    <td width="24" class="arrow">→</td>  
                    <td width="72" class="imagelink">  
                            <a href="http://www.xxx.com/xxx.apk">  
                                    <img src="icon.png" height="72" width="72" />  
                             </a>  
                    </td>  
            </tr></table>  
    </div>  
    <script>
function isWeiXin(){
var ua = window.navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
return true;
}else{
return false;
}
} 
if (isWeiXin()) {
	alert("请用浏览器打开。");
}
	</script>
    </body>  
    </html>  

3、部署和測试 在手机上输入指定的网址。就可以实现安装。

plist 文件例如以下:

plist 外站链接可选择: https://git.oschina.net,, 通过新建项目-->点+ 填入文件名称-->把plist文件复制到内容区-->提交 就可以.



遇到问题參考:

1、http://blog.csdn.net/zhaoxy_thu/article/details/17277527

2、http://stackoverflow.com/questions/20276907/enterprise-app-deployment-doesnt-work-on-ios-7-1/22767699#22767699

3、https://laoyur.com/?p=414

4、http://blog.csdn.net/zhaoxy_thu/article/details/21133399

5、http://www.2cto.com/kf/201312/264286.html

6、http://stackoverflow.com/questions/20276907/enterprise-app-deployment-doesnt-work-on-ios-7-1/22367111#22367111

7、http://www.cnblogs.com/zzy0471/p/3658572.html

posted @ 2016-02-29 18:07  phlsheji  阅读(1405)  评论(0编辑  收藏  举报