ios OTAリリース

2652 ワード

otaでappをインストールするのはクールな機能で、特に友达にテストを送るときです.ずっとこの方面の書類を整理しようとしたが、多くの人が整理したことに気づいた.iOS:install App via OTAはxcode 4.3を使用しています.これには英語のDistributing an iPhone App(.ipa)Over the air with Xcode 4.xcode 4と言っても4.2以下のバージョンがあります.4.3以降は梱包方式が変わったからです.
前提:appをインストールできるデバイスはprovisioning profileに含める必要があります
Environment: iOS 5.0 + xcode 4.3 ref link: https://help.apple.com/iosdeployment-apps/?lang=en-us#app43ad871e
Step 1あなたのプロジェクトで、「iOSデバイス」in the active schemeを選択します(iPad simulator or or iPhone simulatorを選択した場合、menu「Product>Archive」は灰化します)
Step 2 select menu"Product>Archive"プロジェクトのarchive(it 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」プロジェクト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を作成します.1 < a href="itms-services://? action = download -manifest& url = http ://xxx.xxx.xxx.xxx/
CityUCAP.plist">Install App</ a >
Step 9あなたのweb serverに2つのMIMEタイプを追加する必要があります.そうしないと、インストール中にエラーが発生する可能性があります.次にIISを例にMIME typeを追加します.1.IIS Managerを開き、左側のpanelでroot nodeを選択し、右側のpanel double click「MIME Type」2.right clickの任意の位置、select「Add...」を開き、それぞれ次の2つのMIME Typeを追加します
File name extension: .ipa MIME Type: application/octet-stream
File name extension: .plist MIME Type: text/xml
3.restart your web server Step 10.あなたのiPhone web browserでStep 8で作成したhtml fileにアクセスし、click link to install app!
ステップ9については、私がずっと使っていたnginxなので、このステップも配置したことがありませんが、ずっと使いやすいです.