iOS 7.1下itms-services在線安裝失敗的解決方法

iOS 7.1正式版發佈了,以前使用itms-services://URL方式在線安裝ipa文件的方法卻失效了,點擊的時候報錯爲:「沒法安裝應用程序,因xxx.com的證書無效」(錯誤界面見下圖),這應該怎麼解決呢?html

其實iOS 7.1修改了manifest.plist文件的訪問協議,以前能夠經過http協議訪問,在iOS 7.1以後必須使用https協議方式訪問。ios

<a href="http://blog.sqstudio.com/wp-content/uploads/2014/03/ios7.1_https.jpg" class="highslide-image cboxElement" rel="example4" 955"="" style="text-decoration: none; color: rgb(1, 150, 227); cursor: url(http://blog.sqstudio.com/wp-content/plugins/auto-highslide/highslide/graphics/zoomin.cur), pointer; outline: none;">ios7.1_httpsapp

 

 

 

好比以前的連接代碼爲:ide

itms-services://?action=download-manifest&url=http://example.com/manifest.plisturl

在iOS 7.1以後,就須要修改成:spa

itms-services://?action=download-manifest&url=https://example.com/manifest.plistorm

須要一個SSL證書纔可以實如今線安裝ipa文件的功能。htm

 

//-------------------  延伸: 關於https設置 ----------------------------------blog

1.upload your app.plist to dropboxip

2.get shared link of app.plist, like https://www.dropbox.com/s/qgknrfngaxazm38/app.plist

3.replace www.dropbox.com with dl.dropboxusercontent.com in the link, like https://dl.dropboxusercontent.com/s/qgknrfngaxazm38/app.plist

4.write your download.html like <a href="itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/qgknrfngaxazm38/app.plist">INSTALL!!</a>

5.upload the download.html to dropbox

6.get shared link of download.html, like https://www.dropbox.com/s/gnoctp7n9g0l3hx/download.html

7.replace www.dropbox.com with dl.dropboxusercontent.com in the second link as well, like https://dl.dropboxusercontent.com/s/gnoctp7n9g0l3hx/download.html

Now, visit https://dl.dropboxusercontent.com/s/gnoctp7n9g0l3hx/download.html in your device, you can install the app like before.

 

這個是經過上傳dropbox來解決,事實上,只要找個能夠以https方式共享外鏈的網盤,把plist文件上傳就能夠了!

相關文章
相關標籤/搜索