【问题标题】:Cannot distribute in-house iOS App "Cannot Open Page" Error iOS 7无法分发内部 iOS 应用程序“无法打开页面”错误 iOS 7
【发布时间】:2014-05-02 08:38:30
【问题描述】:
    <?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&amp;url=main.com/manifest.plist">Download </a>

【问题讨论】:

  • 你如何“指向”清单文件?
  • 我编辑了您的问题以包含您的 HTML 代码,下次请直接这样做,而不是发表评论。 :-)
  • 我真的很感激它现在看起来好多了!

标签: ios iphone xml ios7


【解决方案1】:

itms-services 链接的url 参数需要正确转义(不能使用 / 字符,必须是 %2f)并且它需要是绝对 URL 而不是相对 URL。

尝试将其更改为:

<a href="itms-services://?action=download-manifest&amp;url=https%3A%2F%2Fexample.com%2Fapp%2fmanifest.plist">Download ProjectA Reports</a>

【讨论】:

  • 嘿,这似乎仍然不起作用,还有什么我可以尝试的吗?
  • 尝试将您的清单与有效的清单进行比较?例如,将您的代码与 TestFlight 的代码进行比较。
  • 我有一个在 ios6 上工作,这是我正在使用的那个,但它仍然无法工作
  • 这肯定不是解决问题的方法。
【解决方案2】:

路径不正确。这个文件对于IOS6和IOS7没有区别

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-07
    • 1970-01-01
    • 2015-04-05
    • 1970-01-01
    • 2015-08-16
    • 1970-01-01
    • 1970-01-01
    • 2013-09-21
    相关资源
    最近更新 更多