如何包括在清单多个应用程序的URL用于通过空中安装
问题描述:
内部我有用于测试的4个步骤的处理(各是一个环境):开发,构建测试,用户验收测试和生产。如何包括在清单多个应用程序的URL用于通过空中安装
目前,我没有使用TestFlight和我不必创建一个清单给定上述每个环境相应的URL。有重复的工作。
有没有一种方法可以支持清单中的多个应用程序URL以便进行无线安装?我可以在没有TestFlight的情况下做到吗?
答
是的,您可以在单个.plist中包含多个.ipa链接。您只需在您的plist中包含多个资产字典。我们这样做是为了提供一个“捆绑”安装的多个内部应用程序。以下是一个包含两个应用程序(app1和app2)的plist示例,确保您为包中包含的每个应用程序更新url
,bundle-identifier
和title
。
<?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>
谢谢,但我可能不清楚,但在我的情况下,有一个单一的应用程序。所以我希望XCode生成4个构建版本,每个版本都有自己的应用程序URL,可以从中下载。我尝试过克隆构建和编辑清单,但出于某种原因无法正常工作(无法安装错误“无法下载应用程序”/“目前无法安装”)。 – urubuz
那么你有不同的构建配置为每个地区?你说你克隆了构建,然后更新了plist?这将导致一个单一的二进制文件,其中每个“区域”将是相同的构建。如果是这种情况,为什么不向所有用户提供相同的URL? OTA构建错误通常意味着您指定的URL是错误的。另外,如果您更新URL,请确保它是https,因为我相信iOS 7以后只能通过https(而不是http)安装应用程序。 – wottle