<?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://app.company.com/myapp/app.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.company.*</string>
<key>bundle-version</key>
<string>1.0.0 (1.0.0)</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>Conference APp</string>
</dict>
</dict>
</array>
</dict>
</plist>
我正在尝试访问清单文件,以在iPhone上下载该应用程序。
我将其指向清单文件,但似乎无法在iOS设备上读取它:
<a href="itms-services://?action=download-manifest&url=main.com/manifest.plist">Download </a>
最佳答案
需要正确转义itms-services链接的url
参数(不能使用/字符,必须为%2f),并且它必须是绝对URL而不是相对URL。
尝试将其更改为:
<a href="itms-services://?action=download-manifest&url=https%3A%2F%2Fexample.com%2Fapp%2fmanifest.plist">Download ProjectA Reports</a>