zoukankan      html  css  js  c++  java
  • IOS以无线方式安装企业内部应用(开发者)

    请先阅读:http://help.apple.com/deployment/ios/#/apda0e3426d7

    操作系统:osx yosemite 10.10.5 (14F1509)

    xcode:Version 7.2 (7C68)

    1.Product-- >Archive,如果成功则会弹出Organizer--Archives界面,选择Export

    cc32c385-0fed-4cc3-a2c8-15de003adb81

    2.选择“企业部署方式”

    217c34eb-326a-41ec-929f-6f1d38203c33

    3.选择相应的账号

    fb72adc4-45e9-4bd1-8881-613a7aed20f6

    4.选择“所有设备”

    d4f3092e-6b02-4c2e-9d25-d82583a2cd9a

    5.勾选“生成plist文件”

    通过无线方式安装需要用到plist文件,所以必须选择;如果通过iTunes方式安装则不需要。

    c144af41-cd7e-40e1-9654-7059e0caa3e0

    点击“Learn More”可以看到apple对“以无线方式安装企业内部应用”的详细解释:http://help.apple.com/deployment/ios/#/apda0e3426d7

    6.上一步勾选了“生成plist文件”,所以此时需要填写相关地址;若未勾选,则不会出现次界面。注意:必须是https的。

    1be01bab-a6ce-4dae-85b6-e606dc238460

    7.点击"Export"即可完成导出。

    8.用文本编辑器打开“manifest.plist”,可以看到刚才填写的信息。

    apple官网给出的manifest.plist示例内容:

     1 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
     2 <plist version="1.0">
     3 <dict>
     4   <!-- array of downloads.-->
     5   <key>items</key>
     6   <array>
     7    <dict>
     8     <!-- an array of assets to download -->
     9      <key>assets</key>
    10       <array>
    11        <!-- software-package: the ipa to install.-->
    12         <dict>
    13          <!-- required. the asset kind.-->
    14           <key>kind</key>
    15           <string>software-package</string>
    16           <!-- optional. md5 every n bytes. will restart a chunk if md5 fails.-->
    17           <key>md5-size</key>
    18           <integer>10485760</integer>
    19           <!-- optional. array of md5 hashes for each "md5-size" sized chunk.-->
    20           <key>md5s</key>
    21           <array>
    22             <string>41fa64bb7a7cae5a46bfb45821ac8bba</string>
    23             <string>51fa64bb7a7cae5a46bfb45821ac8bba</string>
    24           </array>
    25           <!-- required. the URL of the file to download.-->
    26           <key>url</key>
    27           <string>https://www.example.com/apps/foo.ipa</string>
    28         </dict>
    29         <!-- display-image: the icon to display during download.-->
    30         <dict>
    31          <key>kind</key>
    32          <string>display-image</string>
    33          <!-- optional. indicates if icon needs shine effect applied.-->
    34          <key>needs-shine</key>
    35          <true/>
    36          <key>url</key>
    37          <string>https://www.example.com/image.57x57.png</string>
    38         </dict>
    39         <!-- full-size-image: the large 512x512 icon used by iTunes.-->
    40         <dict>
    41          <key>kind</key>
    42          <string>full-size-image</string>
    43          <!-- optional. one md5 hash for the entire file.-->
    44          <key>md5</key>
    45          <string>61fa64bb7a7cae5a46bfb45821ac8bba</string>
    46          <key>needs-shine</key>
    47          <true/>
    48          <key>url</key><string>https://www.example.com/image.512x512.jpg</string>
    49         </dict>
    50       </array>
    51 <key>metadata</key>
    52       <dict>
    53        <!-- required -->
    54        <key>bundle-identifier</key>
    55        <string>com.example.fooapp</string>
    56        <!-- optional (software only) -->
    57        <key>bundle-version</key>
    58        <string>1.0</string>
    59        <!-- required. the download kind.-->
    60        <key>kind</key>
    61        <string>software</string>
    62        <!-- optional. displayed during download; typically company name -->
    63        <key>subtitle</key>
    64        <string>Apple</string>
    65        <!-- required. the title to display during the download.-->
    66        <key>title</key>
    67        <string>Example Corporate App</string>
    68       </dict>
    69     </dict>
    70   </array>
    71 </dict>
    72 </plist>

    9.编写html文件,内容如下:

    <body>

    <a href="itms-services://?action=download-manifest&url=https://git.oschina.net/xxxxxx/raw/master/1.5/manifest.plist">Install App</a>

    </body>

    10.html文件放到web服务器上面,用户通过扫二维码的方式访问html页面,然后点击“Install App”安装应用。

    web服务器不强制https,https和http均可。

    关于用户如何安装app和信任app请参见:

    http://www.cnblogs.com/pengyan5945/p/5218477.html

  • 相关阅读:
    vue使用video.js解决m3u8视频播放格式
    小程序索引列表排序
    小程序实现图片上传,预览以及图片base64位处理
    小程序实现综合排序页面布局
    前端学习 html
    Linux Yum仓库介绍及服务端及客户端配置
    Saltstack 常用的模块及API
    KVM 克隆虚拟机
    KVM 虚拟机基本管理及常用命令
    Saltstack 操作目标,正则匹配,及组管理
  • 原文地址:https://www.cnblogs.com/pengyan5945/p/5218481.html
Copyright © 2011-2022 走看看