我面临严重的问题。我试图让企业应用程序生效。通过使用BetaBuilder我遵循以下步骤:
myApp.ipa
manifest.plist
index.html
manifest.plist:
<?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://example.com/ios/myapp.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.com.myapp</string>
<key>bundle-version</key>
<string>1.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>Myapp</string>
</dict>
</dict>
</array>
</dict>
</plist>
和index.html文件:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Myapp - Beta Release</title>
</head>
<body>
<div id="container">
<h1>iOS 4.0 Users:</h1>
<div class="link"><a href="itms-services://?action=download-manifest&url=https://example.com/ios/manifest.plist">Tap Here to Install</a>
</div>
</div>
</body>
</html>
我甚至将http
链接到https
。但它总是说:Cannot connect to example.com
。设置有什么问题?
答案 0 :(得分:6)
必须通过使用带有经过验证的SSL证书的SSL来提供无线iOS分发。
现在要取消OTA,你必须遵循这些步骤。
1)提供指向生成的.plist
文件的链接,该文件包含应用程序下载的清单。此链接必须通过SSL提供经过验证的SSL证书。有效.plist
文件的示例如下:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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://[full download url].ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string><full bundle identifier></string>
<key>bundle-version</key>
<string>[version string]</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>[software name]</string>
</dict>
</dict>
</array>
</dict>
</plist>
2) .plist
文件中的网址密钥必须通过有效的SSL证书提供。
现在我不是100%的服务器设置,但网络服务器可能无法正确响应.plist
扩展程序以及.ipa
扩展程序。您必须将Web服务器设置为了解以下文件扩展名\ mime-type:
.plist
MimeType:application/xml
分机:.ipa
application/octet-stream
我们首先让我们的应用程序无线部署时遇到了很多问题。最大的障碍是SSL证书和MimeTypes。
最后一条评论,我确信您拥有自己的域名,并且未在您的链接或plist文件中使用example.com。
干杯..