iOS OTA 不工作

标签 ios xcode plist ota

我已经为我的组织设置了 OTA,但似乎无法正常运行。这是我所做的:

  1. 在托管服务器上设置外部认可的 SSL 证书
  2. 确保服务器上有以下 MIME 类型:

ipa application/octet-stream

plist application/xml

  1. 将此链接添加到我们的网页:

<a href="itms-services://?action=download-manifest&url=https://***/***/***.plist">Install</a>

  1. 将 ipa、 list 、57x57 显示图像和 512x512 全尺寸图像分发到服务器。

这是 list 的样子:

<?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://***/***/***.ipa</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>display-image</string>
                <key>need-shine</key>
                <false/>
                <key>url</key>
                <string>https://***/***/***.png</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>full-size-image</string>
                <key>need-shine</key>
                <false/>
                <key>url</key>
                <string>https://***/***/***.png</string>
            </dict>
        </array>
        <key>metadata</key>
        <dict>
            <key>bundle-identifer</key>
            <string>***.***.***</string>
            <key>bundle-version</key>
            <string>233582</string>
            <key>kind</key>
            <string>software</string>
            <key>title</key>
            <string>***</string>
        </dict>
    </dict>
</array>
</dict>
</plist>

我已经验证了 list 中的 URL。他们绝对是正确的。我使用我的电脑作为我手机的代理,我看到我的手机在点击安装链接后成功下载了 list 。但是,手机下载 list 后,没有任何反应 - 手机不安装应用程序或在屏幕上显示错误。我还在交易期间监视了控制台,那里也没有出现错误。

对于可能导致此问题的原因,我完全不知所措。任何帮助,将不胜感激!提前致谢!

最佳答案

我将 need-shine 更改为 needs-shine 并将 bundle-identifer 更改为 bundle-identifier 并且解决了这个问题。如果控制台会针对 list 中的无效字段给出错误,那就太好了,但不幸的是它没有。

关于iOS OTA 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32554426/

相关文章:

php - iPhone 上基本论坛式应用程序的服务器设置?

ios - 如何指定 uicollectionView 背景 View 的最小尺寸?

ios - Assets.xcassets 和 images.xcassets 有什么区别?

ios - 标签一直显示 plist 中的最后一项

ios - 默认 UIButton 中的标题是什么大小的字体?

ios - 每次我尝试添加 ZipArchive 或 ssziparchive 时,Xcode 中都会出现很多错误

ios - Xcode 中的线程 1 : EXC_BAD_INSTRUCTION (code = EXC_1386_INVOP, subside = 0x0)

ios - 每次我在 Xcode for iOS 中构建 Unity 应用程序时,它都会创建一个新图标

ios - 将字符串转换为 plist - swift

ios - 如何在.plist文件中添加数据字符串?