ios越獄設備在線安裝ipa方法

        對於越獄設備,我們可以在線安裝ipa,無需下載ipa再通過其他軟件來安裝。實現這個功能很簡單,首先你需要一個web服務器,可供下載ipa和plist文件。然後準備plist。最後公佈下載地址,點擊下載地址就可以安裝了,會在桌面上顯示您的程序圖標並且開始下載,就跟從AppStore下載的一樣。

        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>http://xxx.com/xx.ipa</string>    
                   </dict>    
                   <dict>    
                       <key>kind</key>    
                       <string>display-image</string>    
                       <key>needs-shine</key>    
                       <true/>    
                       <key>url</key>    
                       <string>http://xxx.com/xx.png</string>    
                   </dict>    
               <dict>    
                       <key>kind</key>    
                       <string>full-size-image</string>    
                       <key>needs-shine</key>    
                       <true/>    
                       <key>url</key>    
                       <string>http://xxx.com/xx-full.png</string>    
                   </dict>    
               </array><key>metadata</key>    
               <dict>    
                   <key>bundle-identifier</key>    
                   <string>com.yoursoftid</string>    
                   <key>bundle-version</key>    
                   <string>1.01</string>    
                   <key>kind</key>    
                   <string>software</string>     
                   <key>title</key>    
                   <string>Your App Name</string>    
               </dict>    
           </dict>    
       </array>    
    </dict>    
    </plist>  

         plist中比較重要的是software-package這個url指向的是ipa的下載地址,plist文件好了,下面需要給個鏈接告訴plist文件的位置。

 

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <title>iOS APP 越獄版一鍵安裝</title>  
  
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport">  
</head>  
<body>  
<a href="itms-services://?action=download-manifest&url=http://xxx.com/xxx.plist">通過越獄的iOS設備瀏覽器訪問本頁,點這兒一鍵安裝 xxx.ipa。</a>  
<br><br>  
<br>    
</body></html>  

         通過item-services協議,越獄設備會自動解析plist文件,然後下載指定的ipa,從而完成在線安裝。當然更新版本時很方便,把

itms-services://?action=download-manifest&url=http://xxx.com/xxx.plit

直接傳給客戶端,用瀏覽器打開這個地址就會自動更新下載了,方便吧!

     

官方參考文檔地址:http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章