下面是把app放到web site,讓其他人通過Over the Air (OTA)下載安裝的步驟。
?
前提: 能安裝app的device需要被包含在你的provisioning profile里
Environment: iOS 5.0 + xcode 4.3
?
ref link: https://help.apple.com/iosdeployment-apps/?lang=en-us#app43ad871e
?
Step 1 在你的project里,選擇" iOS Device " in the active scheme ( 如果選擇的是iPad simulator or iPhone simulator,那么menu "Product > Archive"是灰化的 )
?
Step 2 select menu " Product > Archive "來為你的project創建一個archive (i t is recommended that build your project again before this action )
?
Step 3 這時應該會自動彈出organizer window (之后你可以通過menu " Window > Organizer "來打開它),并顯示你剛創建的archive item in the archive list。Highlight the archive item, and then click " Distribute... " button
?
Step 4 select option " Save for enterprise or Ad-Hoc deployment ", click " Next "
?
Step 5 set " Code Signing Identity " as default value, my default value is " Tomson Xu " ( 這應該是你在apple developer site創建的certificate name ), click " Next "
?
Step 6 設置" Save as "為你的 project name ,設置存放生成文件的位置" Where ",勾上" Save for Enterprise Distribution "。
?
Step 7 設置" Application URL " 為即將生成的ipa將放到web site里的URL (e.g. http://xxx.xxx.xxx.xxx/CityUCAP.ipa ),設置" Title "為任意text( 注意它并不是安裝后的app display name ), click " Save " button. 這時 它將創建一個ipa file和一個與ipa file同名的plist file (假設為 CityUCAP.ipa and CityUCAP.plist)
?
Step 8 把step 7生成的ipa and plist file復制到你的web site里 ( 注意:其url要和step 7設置的”Application URL“一樣 ),然后 創建一個html file as follow.
- < a href ="itms-services://? action = download -manifest& url = http ://xxx.xxx.xxx.xxx/?CityUCAP.plist" > Install App </ a > ?
<a href="itms-services://?action=download-manifest&url=http://xxx.xxx.xxx.xxx/?CityUCAP.plist">Install App</a>
Step 9 你 需要添加2個MIME類型到你的web server ,否則安裝過程中就有可能出錯。下面以IIS為例添加MIME type
1. 打開 IIS Manager ,左邊panel選定root node,然后在右邊的panel double click " MIME Types "
2. right click 任意位置, select " Add... ",分別添加下列2個MIME Type
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
