iOS企業版app部署到本身服務器,不經過AppStore,在iOS設備上直接安裝應用程序

iOS企業版app部署到服務器

.正對ios升級得ios7 之後,plist文件必須放到 https得服務器上了,http不能夠用了html

 

部署具體過程

準備文件:plist文件,ipa安裝包,html下載頁面ios

.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>https://test.company.com.cn/m/moa/test.ipa</string> // 軟件安裝包,安裝包所在的服務器路徑

        </dict>

        <dict>

            <key>kind</key>

            <string>full-size-image</string>

            <key>needs-shine</key>

            <false/>

            <key>url</key>

            <string>https://test.company.com.cn/m/abc/test-512.png</string> //在itunes上點事的圖片路徑

        </dict>

        <dict>

            <key>kind</key>

            <string>display-image</string>

            <key>needs-shine</key>

            <false/>

            <key>url</key>

            <string>https://test.company.com.cn/m/moa/test-57.png</string> // 安裝應用顯示的圖片

        </dict>

    </array>

        <key>metadata</key>

        <dict>
            <key>update-url</key>

            <string>https://test.company.com.me/iosLocal.plist</string> // 版本更新URL

            <key>bundle-identifier</key>

            <string>com.zte.test</string> // 應用bundle-identifier

            <key>bundle-version</key>

            <string>3.0.3</string> // 用用版本號

            <key>kind</key>

            <string>software</string>

            <key>title</key>

            <string>ipa包部署測試</string> // 安裝應用顯示的名稱

        </dict>

    </dict>

</array>

</dict>

</plist>

 ipa安裝包放入plist指定的software-package安裝包路徑服務器

 

不經過在AppStore,在IOS設備上直接安裝應用程序的原理

經過itms-services協議,在safari瀏覽器能夠直接在ios設備上安裝應用程序。itms-services協議須要一個plist配置文件。app

 

html下載界面

經過瀏覽器訪問下載plist地址提示證書無效,解決方式是經過提供一個下載的html解決,而且下載連接須要包含<a href='itms-services://?action=download-manifest&url=https://test.company.com.cn/download/test.plist'>下載</a>, itms-services://?action=download-manifest是固定不變的,url根據環境變化ide

若是須要二維碼的話,能夠根據html下載頁面生成二維碼就ok.測試

 

經過iOS代碼下載

[[UIApplication sharedApplication] openURL:@"itms-services://?action=download-manifest&url=https://test.com.cn/Admin/test.plist"];
相關文章
相關標籤/搜索