In an attempt to deploy the iOS app for enterprise, I created the following link:
Unencoded version (for readability):
<a href="itms-services://?action=download-manifest&url=https://example.com/api/distribution/ios?token=abc123">Download</a>
Encoded Version:
<a href="itms-services://?action=download-manifest&url=https%3A%2F%2Fexample.com%2Fapi%2Fdistribution%2Fios%3Ftoken%3Dabc123">Download</a>
The link is correctly encoded, as discussed here and here .
Assuming the user token is valid, the .plist file .plist returned via SSL, as discussed here . The URL of the .ipa file referenced by the .plist file is generated on the fly. Here's what the .plist file looks like:
<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>
As far as I can tell, our GoDaddy SSL certificate is on a trusted list .
However, despite all of the above, after clicking the link and waiting for the moment, I get the following error:
Cannot connect to [domain]
This is the output of the iPhone console after clicking the link:
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
Any ideas?