ios inHouse 发布应用

来源:互联网 发布:java实战开发经典 pdf 编辑:程序博客网 时间:2024/04/27 22:16

一、明确几个概念

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)

    <!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

1 0