ios9 企业级分发

必备:

支持https的服务器(iOS7.1开始安装企业应用要求服务器要支持https)

download.html

manifest.plist

BingTuan.ipa

可选:

download_57_57.png

iTunes_512_512.jpg

download.html:

<html>

   <head>

       <title>download</title>

   </head>

<body>

   <h1>Bing Tuan</h1>

   <h1>

      <a style="font-size:25px" href="itms-services://?action=download-manifest&url=https://192.168.10.147/~cactus/manifest.plist"/>IOS Download</a>

   </h1>

</body>

</html>

 manifest.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>

<!-- array of downloads. -->

<key>items</key>

<array>

<dict>

<!-- an array of assets to download -->

<key>assets</key>

<array>

<!-- software-package: the ipa to install. -->

<dict>

<!-- required.  the asset kind. -->

<key>kind</key>

<string>software-package</string>

<!-- optional.  md5 every n bytes.  -->

                <!-- will restart a chunk if md5 fails. -->

              <key>md5-size</key>

                <integer>10485760</integer>

                <!-- optional.  array of md5 hashes -->

                <key>md5s</key>

                <array>

                    <string>41fa64bb7a7cae5a46bfb45821ac8bba</string>

                    <string>51fa64bb7a7cae5a46bfb45821ac8bba</string>

                </array>

                <!-- required.  the URL of the file to download. -->

<key>url</key>

<string>https://localhost/~yangjunzhu/BingTuan.ipa</string>

</dict>

<!-- optional. display-image: the icon to display during download. -->

<dict>

<key>kind</key>

<string>display-image</string>

<!-- optional. icon needs shine effect applied. -->

              <key>needs-shine</key>

              <true/>

<key>url</key>

<string>https://localhost/~yangjunzhu/download_57_57.png</string>

</dict>

<!-- optional. full-size-image: the large 512×512 icon used by iTunes. -->

<dict>

<key>kind</key>

<string>full-size-image</string>

<!-- optional.  one md5 hash for the entire file. -->

                <key>md5</key>

                <string>61fa64bb7a7cae5a46bfb45821ac8bba</string>

                <key>needs-shine</key>

                <true/>

<key>url</key>

<string>https://localhost/~yangjunzhu/iTunes_512_512.jpg</string>

</dict>

</array>

<key>metadata</key>

<dict>

   <!-- required -->

<key>bundle-identifier</key>

<string>cn.oukavip.Bingtuan</string>

<!-- optional (software only) -->

<key>bundle-version</key>

<string>1.0</string>

<!-- required.  the download kind. -->

<key>kind</key>

<string>software</string>

<!-- optional. displayed during download; -->

                <!-- typically company name -->

                <key>subtitle</key>

                <string>Apple</string>

                <!-- required.  the title to display during the download. -->

<key>title</key>

<string>BingTuan</string>

</dict>

</dict>

</array>

</dict>

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

<!-- array of downloads. -->

<key>items</key>

<array>

<dict>

<!-- an array of assets to download -->

<key>assets</key>

<array>

<!-- software-package: the ipa to install. -->

<dict>

<!-- required.  the asset kind. -->

<key>kind</key>

<string>software-package</string>

                <!-- required.  the URL of the file to download. -->

<key>url</key>

<string>https://localhost/~yangjunzhu/BingTuan.ipa</string>

</dict>

</array>

<key>metadata</key>

<dict>

   <!-- required -->

<key>bundle-identifier</key>

<string>cn.oukavip.LiveShot</string>

<key>kind</key>

<string>software</string>

<key>title</key>

<string>BingTuan</string>

</dict>

</dict>

</array>

</dict>

</plist>

 ios9:

iOS9以后,企业分发时可能存在:下载的ipa包与网页两者的 bundle ID 无法匹配而导致下载失败的情况;

iOS9以后,企业级分发ipa包将遭到与Mac上dmg安装包一样的待遇:默认不能安装,也不再出现“信任按钮”,需要操作:设置--通用--描述文件--“app名字”--信任应用 。

相关推荐