關於升級了ios7.1以後發佈企業版證書的測試包不能下載的問題,這個蘋果也挺坑的,什麼都不說,也不警告一下,直接就不能用了html
用xcode的organizer裏面的console裏發現安裝的時候提示這個:ios
<Warning>: [ERROR]: Cannot load non-https manifest URL: http://192.168.1.36/kj.plist
<Warning>: Could not load download manifest with underlying error: Error Domain=SSErrorDomain Code=128 "沒法鏈接" UserInfo=0x1669d990 {NSLocalizedDescription=沒法鏈接}xcode
那就用https,而後配個自簽名證書(上一篇有介紹),結果仍是不行:安全
<Warning>: NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) <Warning>: Could not load download manifest with underlying error: Error Domain=NSURLErrorDomain Code=-1202 "沒法鏈接到商店" UserInfo=0x166bc640 {NSLocalizedDescription=沒法鏈接到商店, NSLocalizedRecoverySuggestion=您仍要鏈接此服務器嗎?, NSLocalizedFailureReason=沒法創建安全鏈接。請檢查「日期與時間」設置。, NSErrorFailingURLStringKey=https://192.168.1.36/kj.plist, NSUnderlyingError=0x165b37e0 "此服務器的證書無效。您可能正在鏈接到一個假裝成「192.168.1.36」的服務器,這會威脅到您的機密信息的安全。", NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x166b83e0>, NSErrorFailingURLKey=https://192.168.1.36/kj.plist}
而後google發現有人在Twitter說這個自簽名證書是不夠的....(https://twitter.com/renderplace/status/426754821044338689)服務器
而後有人就提了下支持https的DropBox網盤,而後測試了下,的確是能夠的,可是就是速度奇慢,聊勝於無吧,方法以下:測試
把manifest的plist文件放到Dropbox中,並拷貝出分享連接,如:https://www.dropbox.com/s/7ps3vuk85n9wy5g/kj.plistgoogle
而後把 "www.dropbox.com" 替換成 "dl.dropboxusercontent.com" 即:https://dl.dropboxusercontent.com/s/7ps3vuk85n9wy5g/kj.plisturl
修改html文件中得manifest URL:spa
<a href="itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/7ps3vuk85n9wy5g/kj.plist">快捷酒店管家。</a>
再去ios7.1的機上試就能夠了,可是那個速度在國內真是不敢恭維...code
PS:如今有個七牛挺好用 https://portal.qiniu.com/ 方法差很少,你們能夠試試。