安装OTA App无法下载

时间:2013-12-17 16:22:05

标签: ios failed-installation ota

我有一个企业应用程序,我想在运行IIS 6.0的服务器上托管。所以我遵循了这个指南:

http://help.apple.com/iosdeployment-apps/mac/1.1/#app43ad871e

当我点击下载应用程序的链接时,我会在图标开始动画显示某些进度后收到“无法下载应用程序”错误。

  • 我知道找到并读取了manifest.plist,因为在错误消息之前已经加载了图标和应用程序名称。
  • 我尝试将MIME类型更改为“.ipa:application / octet-stream”和“.plist:application / x-plist”
  • 我可以浏览并从同一设备下载.png和.ipa文件我试图将其安装到。
  • .ipa和bundle id应该没问题,因为它们托管在另一台服务器上没有任何问题(我没有任何关系,但是试图从那里安装应用程序,它工作正常)。
  • 我在这上面阅读了很多帖子,但似乎无法确定我的方案中出了什么问题。

这是我现在的清单文件:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <!-- array of downloads. -->
   <key>items</key>
   <array>
       <dict>
           <!-- an array of assets to download -->
           <key>assets</key>
           <array>
               <!-- software-package: the ipa to install. -->
               <dict>
                   <!-- required. the asset kind. -->
                   <key>kind</key>
                   <string>software-package</string>
                   <!-- optional. md5 every n bytes. will restart a chunk if md5 fails. -->
                   <key>md5-size</key>
                   <integer>10485760</integer>
                   <!-- optional. array of md5 hashes for each "md5-size" sized chunk. -->
                   <key>md5s</key>
                   <array>
                       <string>41fa64bb7a7cae5a46bfb45821ac8bba</string>
                       <string>51fa64bb7a7cae5a46bfb45821ac8bba</string>
                   </array>
                   <!-- required. the URL of the file to download. -->
                   <key>url</key>
                   <string>https://app.xxxx.com/site/appName.ipa</string>
               </dict>
               <!-- display-image: the icon to display during download .-->
               <dict>
                   <key>kind</key>
                   <string>display-image</string>
                   <!-- optional. indicates if icon needs shine effect applied. -->
                   <key>needs-shine</key>
                   <true/>
                   <key>url</key>
                   <string>https://app.xxxx.com/site/img57x57.png</string>
               </dict>
               <!-- full-size-image: the large 512x512 icon used by iTunes. -->
               <dict>
                   <key>kind</key>
                   <string>full-size-image</string>
                   <!-- optional. one md5 hash for the entire file. -->
                   <key>md5</key>
                   <string>61fa64bb7a7cae5a46bfb45821ac8bba</string>
                   <key>needs-shine</key>
                   <true/>
                   <key>url</key><string>https://app.xxxx.com/site/img512x512.png</string>
               </dict>
           </array><key>metadata</key>
           <dict>
               <!-- required -->
               <key>bundle-identifier</key>
               <string>my.bundle.id</string>
               <!-- optional (software only) -->
               <key>bundle-version</key>
               <string>1.0.9</string>
               <!-- required. the download kind. -->
               <key>kind</key>
               <string>software</string>
               <!-- optional. displayed during download; typically company name -->
               <key>subtitle</key>
               <string>Me</string>
               <!-- required. the title to display during the download. -->
               <key>title</key>
               <string>My App Name</string>
           </dict>
       </dict>
   </array>
</dict>
</plist>

以及安装应用的链接:

<!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" />
<title>Sample iOS OTA install</title>

</head>

<body>

<a href="itms-services://?action=download-manifest&url=https://app.xxxx.com/site/manifest.plist">Install App</a>
</body>
</html>

0 个答案:

没有答案