如何在清单中包含多个应用程序URL以进行无线安装

时间:2017-02-27 22:20:36

标签: ios xcode provisioning-profile enterprise ipa

在内部,我有一个4步骤的测试过程(每个都是一个环境):开发,构建测试,用户验收测试和生产。

目前,我没有使用TestFlight,并且必须在给定上述每个环境的情况下创建包含相应URL的清单。有重复的工作。

是否有一种方法支持清单中的多个应用程序URL以进行无线安装?我可以在没有TestFlight的情况下完成吗?

1 个答案:

答案 0 :(得分:0)

是的,您可以在单个.plist中包含多个.ipa链接。您只需在plist中包含多个资产词典。我们这样做是为了提供单个"捆绑"安装多个内部应用程序。以下是包含两个应用(app1和app2)的plist示例,请确保为包含在其中的每个应用更新urlbundle-identifiertitle

<?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://server/app1.ipa</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>com.company.app1</string>
                <key>bundle-version</key>
                <string></string>
                <key>kind</key>
                <string>software</string>
                <key>subtitle</key>
                <string></string>
                <key>title</key>
                <string>App description 1</string>
            </dict>
        </dict>     
          <dict>
            <key>assets</key>
            <array>
                <dict>
                    <key>kind</key>
                    <string>software-package</string>
                    <key>url</key>
                    <string>https://server/app2.ipa</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>com.company.app2</string>
                <key>bundle-version</key>
                <string></string>
                <key>kind</key>
                <string>software</string>
                <key>subtitle</key>
                <string></string>
                <key>title</key>
                <string>App description 2</string>
            </dict>
        </dict>
    </array>
</dict>
</plist>