apple個人開發人員認證無線發布app的實現

來源:互聯網
上載者:User

解釋一下這標題:apple個人開發人員認證無線發布app的實現,也就是說不經過發布到app store,直接在ios裝置上安裝app,註:ios裝置不需要越獄。

之所以有這篇文章的產生,可以看這裡:

不通過App Store,在iOS裝置上直接安裝應用程式

下面直接,介紹實現步驟:

1、設定簽名

利用developer profile或者adhoc distribution profile簽名app,注意,不能使用distribution profile方式簽名,經過測試,是無法安裝的。其中原因個人認為developer profile和adhoc distribution profile都可以指定裝置,跟之前瞭解到的,個人開發人員認證只能在100個裝置中實現無線安裝是一致的。

2、產生arichive

菜單:product->build for->arichiving,然後product->archive,完成後可以在organizer中看到產生的arichive。

3、產生ipa

選擇剛剛產生的arichive,點擊“Distribute...",彈出如介面,選擇第二個:

選擇後點“next”,設定相關參數,如:

一定要勾選“save for enterprise distribution”,簡單解釋一下各個參數。

application url,是產生的ipa在伺服器的位置;title是安裝過程中出現的標題;subtitle暫時不清楚做何用處;large image url 和 smal image url是安裝過程中出現的表徵圖。

點擊儲存,將產生兩個檔案:myApp.ipa和myApp.plist。

4、伺服器部署

將myApp.ipa和myApp.plist部署到伺服器,同時在伺服器產生一個html檔案,目的是點擊後開啟一個連結,這樣ios裝置就會執行指令自動安裝app了。

要開啟的連結內容如下:

itms-services://?action=download-manifest&url=http://192.168.5.7:8080/stgApp.plist

5、附一個偷回來的html檔案:

[html]
view plaincopyprint?
  1. <!DOCTYPE html>  
  2. <html>  
  3. <head>  
  4.         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
  5.         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />   
  6.         <title>Install Geoloqi</title>  
  7.         <style type="text/css">  
  8.                 body {  
  9.                         background: url(bkg.png) repeat #c5ccd4;  
  10.                         font-family: Helvetica, arial, sans-serif;  
  11.                 }  
  12.                 .congrats {  
  13.                         font-size: 16pt;  
  14.                         padding: 6px;  
  15.                         text-align: center;  
  16.                 }  
  17.                 .step {  
  18.                         background: white;  
  19.                         border: 1px #ccc solid;  
  20.                         border-radius: 14px;  
  21.                         padding: 4px 10px;  
  22.                         margin: 10px 0;  
  23.                 }  
  24.                 .instructions {  
  25.                         font-size: 10pt;  
  26.                 }  
  27.                 .arrow {  
  28.                         font-size: 15pt;  
  29.                 }  
  30.                 table {  
  31.                         width: 100%;  
  32.                 }  
  33.         </style>  
  34. </head>  
  35. <body>  
  36.    
  37. <div class="congrats">Congrats! You've been invited to the beta of Geoloqi.</div>  
  38.    
  39. <div class="step">  
  40.         <table><tr>  
  41.                 <td class="instructions">Install the<br />FilmPicker App</td>  
  42.                 <td width="24" class="arrow">→</td>  
  43.                 <td width="72" class="imagelink">  
  44.                         <a href="itms-services://?action=download-manifest&url=http://192.168.5.7:8080/stgApp.plist">  
  45.                                 <img src="icon.png" height="72" width="72" />  
  46.                          </a>  
  47.                 </td>  
  48.         </tr></table>  
  49. </div>  
  50.    
  51. </body>  
  52. </html>  
<!DOCTYPE html><html><head>        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />         <title>Install Geoloqi</title>        <style type="text/css">                body {                        background: url(bkg.png) repeat #c5ccd4;                        font-family: Helvetica, arial, sans-serif;                }                .congrats {                        font-size: 16pt;                        padding: 6px;                        text-align: center;                }                .step {                        background: white;                        border: 1px #ccc solid;                        border-radius: 14px;                        padding: 4px 10px;                        margin: 10px 0;                }                .instructions {                        font-size: 10pt;                }                .arrow {                        font-size: 15pt;                }                table {                        width: 100%;                }        </style></head><body> <div class="congrats">Congrats! You've been invited to the beta of Geoloqi.</div> <div class="step">        <table><tr>                <td class="instructions">Install the<br />FilmPicker App</td>                <td width="24" class="arrow">→</td>                <td width="72" class="imagelink">                        <a href="itms-services://?action=download-manifest&url=http://192.168.5.7:8080/stgApp.plist">                                <img src="icon.png" height="72" width="72" />                         </a>                </td>        </tr></table></div> </body></html>

以上步驟順利經過測試。在摸索過程中參考了以下幾篇文章,粘貼一下,以表示對作者迷途指導的感激之情。

How to Distribute your iOS Apps Over the Air無需iTunes,無線發布iOS App

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.