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;">app
好比以前的连接代码为: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文件上传就能够了!