iOS应用程序:企业分发/部署 - 缺少app.plist [英] iOS App: Enterprise Distribution/Deployment - Missing app.plist

查看:329
本文介绍了iOS应用程序:企业分发/部署 - 缺少app.plist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



以下是从网络服务下载应用程序的示例链接:'itms-services://?action = download-manifest& url =



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




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


  • 输入有关您的网络服务器的详细信息出现分发清单信息对话框,然后单击导出。




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




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



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



DIY



如果您不想通过繁琐的xcode流程,那么这是最简单的方法



以下是您可以根据键a编辑内容的示例清单文件内容我之前已经解释过并将其保存为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>
<! - 下载数组。 - >
< key> items< / key>
< array>
< dict>
<! - 要下载的资产数组 - >
< key> assets< / key>
< array>
<! - software-package:要安装的ipa。 - >
< dict>
<! - 必填。资产种类。 - >
< key> kind< / key>
< string> software-package< / string>
< key> url< / key>
< string> http://www.example.com/apps/foo.ipa& lt; / string>
< / dict>
<! - display-image:下载过程中显示的图标。 - >
< dict>
< key> kind< / key>
< string> display-image< / string>
<! - 可选。图标需要应用闪耀效果。 - >
< key> needs-shine< / key>
< true />
< key> url< / key>
< string> http://www.example.com/image.57×57.png& lt; / string>
< / dict>
<! - 全尺寸图片:iTunes使用的大型512×512图标。 - >
< dict>
< key> kind< / key>
< string> full-size-image< / string>
<! - 可选。图标需要应用闪耀效果。 - >
< key> needs-shine< / key>
< true />
< key> url< / key>
< string> http://www.example.com/image.512×512.png& lt; / string>
< / dict>
< / array>< key>元数据< / key>
< dict>
<! - required - >
< key> bundle-identifier< / key>
< string> com.example.fooapp< / string>
<! - 可选(仅限软件) - >
< key>捆绑版本< / key>
< string> 1.0< / string>
<! - 必填。下载类型。 - >
< key> kind< / key>
< string>软件< / string>
<! - 可选。下载期间显示; - >
<! - 通常是公司名称 - >
< key> subtitle< / key>
< string> Apple< / string>
<! - 必填。下载过程中显示的标题。 - >
< key> title< / key>
< string>示例企业应用< / string>
< / dict>
< / dict>
< / array>
< / dict>
< / plist>



PS



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




  • .ipa application / octet-steam


  • .plist text / xml




执行此操作后,如果您在安装应用程序时遇到问题,请参阅此链接,这将有所帮助给你



希望这会有所帮助:)


I'm facing an issue with deployment of enterprise iOS application.

Here is sample link to download app from web service: 'itms-services://?action=download-manifest&url=https://location.company.com/sites/mobile/Files/Mobile/deploy/app.plist'.

I hosted an html and ipa files on same web server.

When I am trying to download app from server, I am getting an error:

"Cannot connect to Server"

The device log in the Xcode shows, the below log:
TOM-iPhone itunesstored[106] : Could not load download manifest with underlying error: Error Domain=SSErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}

It's indicating an error for missing app.plist at following location https://location.company.com/sites/mobile/Files/Mobile/deploy/app.plist

How can I create new app plist?

Here I saw sample plist but how can I create plist for my app?

解决方案

BASICALLY YOU HAVE TO HAVE MANIFEST FILE IF YOU ARE GONNA DISTRIBUTE OTA(OVER THE AIR) LIKE THIS THROUGH WEB SERVER

app.plist is a manifest file

The manifest is an XML-based property list (.plist extension) and it should contain the following six key/value pairs:

  • URL

    a fully-qualified URL pointing to the .ipa file

  • display-image

    a fully-qualified URL pointing to a 57×57-pixel (72x72 for iPad) PNG icon used during download and installation

  • full-size-image

    a fully-qualified URL pointing to a 512×512-pixel PNG image that represents the iTunes app

  • bundle-identifier

    the app’s standard application identifier string, as specified in the app’s .plist file

  • bundle-version

    the app’s current bundle version string, as specified in the app’s .plist file

  • title

    a human-readable application name

Using Xcode

  • In the XCODE Archives organizer, select the archive that was used to make ipa

  • Click the Export button, select Save for Enterprise Deployment, and click Next.

The Finder shows the exported that has an .ipa extension.

  • Review the build options, and click Next. check Include manifest for over-the-air installation

  • enter details about your web server in the Distribution manifest information dialog that appears, and click Export.

  • Enter a filename and location for the iOS App file, and click Export.

YOU HAVE TO RENAME THE PLIST AS app.plist AND COPY TO

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

DIY

If you don't want to go through the tedious xcode process then here is the easiest way

Here is the sample manifest file content you can edit it contents according to the keys as I have explained earlier and save it as app.plist and copy to

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>

P.S

Make sure your website is configured to support the following two MIME types in Web server

  • .ipa application/octet-steam

  • .plist text/xml

After doing this if you have trouble installing the application please refer this link it'd be helpful to you

Hope this helps :)

这篇关于iOS应用程序:企业分发/部署 - 缺少app.plist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆