我已经为我的组织设置了 OTA,但似乎无法正常运行。这是我所做的:
- 在托管服务器上设置外部认可的 SSL 证书
- 确保服务器上有以下 MIME 类型:
ipa application/octet-stream
plist application/xml
- 将此链接添加到我们的网页:
<a href="itms-services://?action=download-manifest&url=https://***/***/***.plist">Install</a>
- 将 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/