IOS 设备 通过HTML页面在线安装APP配置(面向越狱设备或者有开发者账号调试APP)

转自 http://blog.csdn.net/csy172775922/article/details/6891138


1、创建plist

XCode菜单栏->Product->Archive  等待编译完成.

在Archive窗口下点击右边Share按钮.

将ipa另存至任意目录并勾选Save for EnterPrise Distribution 并填选内容即可生成对应程序的plist

全部设置的 Plist 如下:(文件编码UTF-8)

[html]  view plain copy
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">  
  3. <plist version="1.0">  
  4. <dict>  
  5.     <key>items</key>  
  6.     <array>  
  7.         <dict>  
  8.             <key>assets</key>  
  9.             <array>  
  10.                 <dict>  
  11.                     <key>kind</key>  
  12.                     <string>software-package</string>  
  13.                     <key>url</key>  
  14.                     <string>程序ipa的URL</string>  
  15.                 </dict>  
  16.                 <dict>  
  17.                     <key>kind</key>  
  18.                     <string>full-size-image</string>  
  19.                     <key>needs-shine</key>  
  20.                     <true/>  
  21.                     <key>url</key>  
  22.                     <string>大ICON图标的URL</string>  
  23.                 </dict>  
  24.                 <dict>  
  25.                     <key>kind</key>  
  26.                     <string>display-image</string>  
  27.                     <key>needs-shine</key>  
  28.                     <true/>  
  29.                     <key>url</key>  
  30.                     <string>小ICON图标的URL</string>  
  31.                 </dict>  
  32.             </array>  
  33.             <key>metadata</key>  
  34.             <dict>  
  35.                 <key>bundle-identifier</key>  
  36.                 <string>程序的identifier在xcode中</string>  
  37.                 <key>bundle-version</key>  
  38.                 <string>程序版本号在xcode中</string>  
  39.                 <key>kind</key>  
  40.                 <string>software</string>  
  41.                 <key>subtitle</key>  
  42.                 <string>子标题</string>  
  43.                 <key>title</key>  
  44.                 <string>标题</string>  
  45.             </dict>  
  46.         </dict>  
  47.     </array>  
  48. </dict>  
  49. </plist>  


2、创建HTML

[html]  view plain copy
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  5. </head>  
  6. <body>  
  7. <a href="itms-services://?action=download-manifest&url=http://localhost/app.plist">在线安装</a>  
  8. </body>  
  9. </html>  

主要语句:

itms-services://?action=download-manifest&url=http://localhost/app.plist

调用了Plist并且请求了Plist内部指定的程序URL。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值