zoukankan      html  css  js  c++  java
  • ipa包放到服务器上供用户下载

    首先需要我们提供两个文件:一个 ipa包和一个plist 文件

    第一步:把包放到服务器上;

    第二步:配置 plist 文件;

    第三步:把plist 文件放到服务器上;

    第四步:使用 itms-services://?action=download-manifest&url=plist路径 访问就可以下载安装 ipa 包了。

    ipa 包的信息都在plist 文件中包含,如下所示:

    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://xxx/aaa.ipa</string>
                    </dict>
                    <dict>
                        <key>kind</key>
                        <string>display-image</string>
                        <key>url</key>
                        <string>https://xxx/logo_57.png</string>
                    </dict>
                    <dict>
                        <key>kind</key>
                        <string>full-size-image</string>
                        <key>url</key>
                        <string>https://xxx/logo_512.png</string>
                    </dict>
                </array>
                <key>metadata</key>
                <dict>
                    <key>bundle-identifier</key>
                    <string>com.xx.xxx</string>
                    <key>bundle-version</key>
                    <string>1.0.0</string>
                    <key>kind</key>
                    <string>software</string>
                    <key>platform-identifier</key>
                    <string>com.apple.platform.iphoneos</string>
                    <key>title</key>
                    <string>App名称</string>
                </dict>
            </dict>
        </array>
    </dict>
    </plist>
  • 相关阅读:
    398. Random Pick Index
    382. Linked List Random Node
    645. Set Mismatch
    174. Dungeon Game
    264. Ugly Number II
    115. Distinct Subsequences
    372. Super Pow
    LeetCode 242 有效的字母异位词
    LeetCode 78 子集
    LeetCode 404 左叶子之和
  • 原文地址:https://www.cnblogs.com/lion-witcher/p/13879276.html
Copyright © 2011-2022 走看看