zoukankan      html  css  js  c++  java
  • iOS企业版app部署到自己服务器,不通过AppStore,在iOS设备上直接安装应用程序

    iOS企业版app部署到服务器

    .正对ios升级得ios7 以后,plist文件必须放到 https得服务器上了,http不可以用了

    部署具体过程

    准备文件:plist文件,ipa安装包,html下载页面

    .plist参照模板如下

    <?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>https://test.company.com.cn/m/moa/test.ipa</string> // 软件安装包,安装包所在的服务器路径
    
            </dict>
    
            <dict>
    
                <key>kind</key>
    
                <string>full-size-image</string>
    
                <key>needs-shine</key>
    
                <false/>
    
                <key>url</key>
    
                <string>https://test.company.com.cn/m/abc/test-512.png</string> //在itunes上点事的图片路径
    
            </dict>
    
            <dict>
    
                <key>kind</key>
    
                <string>display-image</string>
    
                <key>needs-shine</key>
    
                <false/>
    
                <key>url</key>
    
                <string>https://test.company.com.cn/m/moa/test-57.png</string> // 安装应用显示的图片
    
            </dict>
    
        </array>
    
            <key>metadata</key>
    
            <dict>
                <key>update-url</key>
    
                <string>https://test.company.com.me/iosLocal.plist</string> // 版本更新URL
    
                <key>bundle-identifier</key>
    
                <string>com.zte.test</string> // 应用bundle-identifier
    
                <key>bundle-version</key>
    
                <string>3.0.3</string> // 用用版本号
    
                <key>kind</key>
    
                <string>software</string>
    
                <key>title</key>
    
                <string>ipa包部署测试</string> // 安装应用显示的名称
    
            </dict>
    
        </dict>
    
    </array>
    
    </dict>
    
    </plist>

     ipa安装包放入plist指定的software-package安装包路径

    不通过在AppStore,在IOS设备上直接安装应用程序的原理

    通过itms-services协议,在safari浏览器可以直接在ios设备上安装应用程序。itms-services协议需要一个plist配置文件。

    html下载界面

    通过浏览器访问下载plist地址提示证书无效,解决方式是通过提供一个下载的html解决,并且下载链接需要包含<a href='itms-services://?action=download-manifest&url=https://test.company.com.cn/download/test.plist'>下载</a>, itms-services://?action=download-manifest是固定不变的,url根据环境变化

    如果需要二维码的话,可以根据html下载页面生成二维码就ok.

    通过iOS代码下载

    [[UIApplication sharedApplication] openURL:@"itms-services://?action=download-manifest&url=https://test.com.cn/Admin/test.plist"];
    

      

  • 相关阅读:
    Design Pattern Quick Overview
    [转载]最好的HTML 5编码教程和参考手册分享 .
    业务学习
    [收藏转载]明星软件工程师的十种特质
    一般函数指针和类的成员函数指针
    [LoadRunner]负载测试工具
    [收藏转载]2011 APP年终总结——日均160元的收入经历
    Importance of Side Projects
    [P4 password]Avoiding the Perforce Prompt for Password in Windows
    [收藏转载]我所积累的20条编程经验
  • 原文地址:https://www.cnblogs.com/HJiang/p/7826703.html
Copyright © 2011-2022 走看看