在努力部署企業iOS應用程序,我創建了以下鏈接:iOS的企業Deployement:點擊在ITMS服務鏈接結果「無法連接到[域]」錯誤
非編碼版本(容易讀):
<a href="itms-services://?action=download-manifest&url=https://example.com/api/distribution/ios?token=abc123">Download</a>
編碼版本:
<a href="itms-services://?action=download-manifest&url=https%3A%2F%2Fexample.com%2Fapi%2Fdistribution%2Fios%3Ftoken%3Dabc123">Download</a>
假設用戶令牌有效,.plist
文件通過SSL返回,如討論here。動態生成.plist
文件中引用的.ipa
文件的URL。這裏是.plist
文件的樣子:
<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>TEMP_URL</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>org.cocos2d.ready-ios</string>
<key>bundle-version</key>
<string>0.0.1</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>Ready</string>
</dict>
</dict>
</array>
</dict>
</plist>
至於我可以告訴大家,我們的GoDaddy的SSL證書似乎在trusted list。
然而,儘管上述所有,攻絲鏈接並等待片刻後,我收到以下錯誤:
Cannot connect to [domain]
這是竊聽的鏈接後的iPhone控制檯輸出:
Aug 29 07:30:56 My-iPhone wifid[15] <Notice>: WiFi:[431015456.799163]: Client itunesstored set type to background application
Aug 29 07:30:56 My-iPhone wifid[15] <Notice>: WiFi:[431015456.804319]: BG Application: Not Present, BG Daemon: Present. Daemons: apsd networkd itunesstored
Aug 29 07:30:56 My-iPhone wifid[15] <Notice>: WiFi:[431015456.806066]: Already connected to [Company Name].
Aug 29 07:30:58 My-iPhone itunesstored[100] <Warning>: Could not load download manifest with underlying error: Error Domain=SSErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo=0x15788270 {NSLocalizedDescription=Cannot connect to iTunes Store}
Aug 29 07:31:03 My-iPhone wifid[15] <Notice>: WiFi:[431015463.925398]: Client itunesstored set type to normal application
Aug 29 07:31:03 My-iPhone wifid[15] <Notice>: WiFi:[431015463.928745]: BG Application: Not Present, BG Daemon: Present. Daemons: apsd networkd
任何想法?
*「有什麼想法?」* - DNS問題,防火牆問題或路由問題到企業服務器? – jww 2014-08-29 07:17:18
@jww:感謝您的評論。我不認爲這是一個DNS問題,因爲所有其他DNS查找工作正常。我可以通過瀏覽器中的鏈接下載.plist文件和.ipa文件,所以我不認爲這是路由問題。我沒有任何防火牆運行。 – 2014-08-29 14:28:55
要在服務器上設置的MIME類型https://stackoverflow.com/questions/29559793/cannot-connect-to-example-com-in-ios-enterprise-app – 2017-10-10 04:48:09