解釋一下這標題: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?
- <!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>
<!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