iOS应用程序:企业分发/部署 - 缺少app.plist

Kru*_*nal 0 deployment xcode plist ios enterprise-distribution

我正面临部署企业iOS应用程序的问题.

以下是从Web服务下载应用程序的示例链接:'itms-services://?action = download-manifest&url = https://location.company.com/sites/mobile/Files/Mobile/deploy/app.plist '.

我在同一个Web服务器上托管了一个html和ipa文件.

当我尝试从服务器下载应用程序时,我收到一个错误:

"无法连接到服务器"

设备登录Xcode显示,下面的日志:
TOM-iPhone itunesstored [106]:无法加载带有底层错误的下载清单:Error Domain = SSErrorDomain Code = 2"无法连接到iTunes Store"UserInfo = {NSLocalizedDescription =无法连接到iTunes Store}

它表示在以下位置丢失app.plist时 出错:https://location.company.com/sites/mobile/Files/Mobile/deploy/app.plist

如何创建新的app plist?

在这里,我看到了示例plist但是如何为我的应用程序创建plist?

Dur*_*n.H 8

如果你是GONNA分配OTA(在空中),那么基本上你必须有一个简单的文件就像这样通过WEB服务器

app.plist是一个清单文件

清单是基于XML的属性列表(.plist扩展名),它应包含以下六个键/值对:

  • 网址

    指向.ipa文件的完全限定URL

  • 显示图像

    一个完全限定的URL,指向下载和安装过程中使用的57×57像素(iPad为72x72)的PNG图标

  • 全尺寸图像

    一个完全限定的URL,指向代表iTunes应用程序的512×512像素PNG图像

  • 束标识符

    应用程序的标准应用程序标识符字符串,在应用程序的.plist文件中指定

  • 包版本

    应用程序的当前包版本字符串,在应用程序的.plist文件中指定

  • 标题

    一个人类可读的应用程序名称

使用Xcode

  • 在XCODE Archives 管理器中,选择用于制作ipa 的存档

  • 单击"导出"按钮,选择" 保存企业部署",然后单击"下一步".

在此输入图像描述 在此输入图像描述

Finder显示具有.ipa扩展名的导出.

  • 查看构建选项,然后单击"下一步".检查包括无线安装的清单

  • 在显示的" 分发清单信息"对话框中输入有关Web服务器的详细信息,然后单击"导出"

    在此输入图像描述

  • 输入iOS App文件的文件名和位置,然后单击"导出".

你必须将PLIST重新命名为app.plist并复制到

https://location.company.com/sites/mobile/Files/Mobile/deploy/

DIY

如果你不想经历繁琐的xcode过程,那么这是最简单的方法

这是示例清单文件内容,您可以根据我之前解释的密钥编辑它的内容,并将其保存为app.plist并复制到

https://location.company.com/sites/mobile/Files/Mobile/deploy/

 <!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>
                   <key>url</key>
                   <string>http://www.example.com/apps/foo.ipa&lt;/string>
               </dict>
               <!-- display-image: the icon to display during download. -->
               <dict>
                   <key>kind</key>
                   <string>display-image</string>
                   <!-- optional. icon needs shine effect applied. -->
                   <key>needs-shine</key>
                   <true/>
                   <key>url</key>
                   <string>http://www.example.com/image.57×57.png&lt;/string>
               </dict>
               <!-- full-size-image: the large 512×512 icon used by iTunes. -->
               <dict>
                   <key>kind</key>
                   <string>full-size-image</string>
                              <!-- optional. icon needs shine effect applied. -->
                   <key>needs-shine</key>
                   <true/>
                   <key>url</key>
                   <string>http://www.example.com/image.512×512.png&lt;/string>
               </dict>
           </array><key>metadata</key>
           <dict>
               <!-- required -->
               <key>bundle-identifier</key>
               <string>com.example.fooapp</string>
               <!-- optional (software only) -->
               <key>bundle-version</key>
               <string>1.0</string>
               <!-- required. the download kind. -->
               <key>kind</key>
               <string>software</string>
               <!-- optional. displayed during download; -->
               <!-- typically company name -->
               <key>subtitle</key>
               <string>Apple</string>
               <!-- required. the title to display during the download. -->
               <key>title</key>
               <string>Example Corporate App</string>
           </dict>
       </dict>
   </array>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)

PS

确保您的网站配置为支持Web服务器中的以下两种MIME类型

  • .ipa application/octet-stream

  • .plist text/xml

如果您在安装应用程序时遇到问题,请参考此链接,它对您有所帮助

希望这可以帮助 :)