简体   繁体   English

iOS:Over The Air发行版适用于iPad1(iOS 5),但不适用于iPad3(iOS 6)

[英]iOS: Over The Air distribution works on iPad1 (iOS 5) but not on iPad3 (iOS 6)

I'm trying to setup over the air distribution for an enterprise inhouse app. 我正在尝试为企业内部应用设置空中分配。 For testing i have an iPad 1 with iOS 5 and an iPad 3 with iOS 6. The server from which i try to install the ipa is within our company network, and the ipads connect to this network with the VPN client. 为了测试,我有一台带有iOS 5的iPad 1和一台带有iOS 6的iPad 3.我尝试安装ipa的服务器位于我们公司的网络中,而ipads通过VPN客户端连接到该网络。

The application runs on both iPads when installed using the iPhone Configuration Utility. 使用iPhone配置实用程序安装时,应用程序可在两台iPad上运行。 But Over The Air installation works only on the iPad 1. On the iPad 3, when clicking the download link, i get the message 但是Over the Air安装仅适用于iPad 1.在iPad 3上,当点击下载链接时,我收到消息

"Cannot connect to Mysubdomain.myserver.com"

When I check the serverlog after downloading from the iPad 1, i see this log: 当我从iPad 1下载后检查服务器日志时,我看到这个日志:

#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2012-11-01 12:59:49
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2012-11-01 12:59:49 172.16.50.30 GET /sp_for_ipad/download.html - 80 - 172.16.127.177 Mozilla/5.0+(iPad;+CPU+OS+5_0_1+like+Mac+OS+X)+AppleWebKit/534.46+(KHTML,+like+Gecko)+Version/5.1+Mobile/9A405+Safari/7534.48.3 200 0 0 890
2012-11-01 12:59:52 172.16.50.30 GET /sp_for_ipad/manifest.plist - 80 - 172.16.127.177 iTunes-iPad/5.0.1+(32GB) 200 0 0 78
2012-11-01 12:59:55 172.16.50.30 GET /sp_for_ipad/image.57x57.png - 80 - 172.16.127.177 iTunes-iPad/5.0.1+(32GB) 200 0 0 31
2012-11-01 12:59:56 172.16.50.30 HEAD /sp_for_ipad/MyApp.ipa - 80 - 172.16.127.177 iTunes-iPad/5.0.1+(32GB) 200 0 0 109
2012-11-01 12:59:56 172.16.50.30 GET /sp_for_ipad/image.512x512.png - 80 - 172.16.127.177 iTunes-iPad/5.0.1+(32GB) 200 0 0 31
2012-11-01 13:04:45 172.16.50.30 GET /sp_for_ipad/MyApp.ipa - 80 - 172.16.127.177 iTunes-iPad/5.0.1+(32GB) 200 0 0 288293

When I try to download from the iPad3, this is all I see in the serverlog: 当我尝试从iPad3下载时,这就是我在服务器日志中看到的内容:

#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2012-11-01 12:59:49
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2012-11-01 13:04:00 172.16.50.30 GET /sp_for_ipad/download.html - 80 - 172.16.127.179 Mozilla/5.0+(iPad;+CPU+OS+6_0+like+Mac+OS+X)+AppleWebKit/536.26+(KHTML,+like+Gecko)+Version/6.0+Mobile/10A403+Safari/8536.25 200 0 0 62

So, it doesn't even query for the manifest.plist. 因此,它甚至不查询manifest.plist。

my download.html looks like this: 我的download.html看起来像这样:

<html>
<body>
<a href="itms-services://?action=download-manifest&url=http://Mysubdomain.myserver.com/sp_for_ipad/manifest.plist">Install App</a>
</body>
</html>

So - the link seems to work for the iPad 1, but not on the iPad 3. I've setup the MIME types on the server correctly. 所以 - 该链接似乎适用于iPad 1,但不适用于iPad 3.我已正确设置服务器上的MIME类型。

The strange thing is - I also tested the whole procedure with another server which is not within the company VPN (so I then don't use the VPN clients on the iPads) and in this case the installation works with both iPads. 奇怪的是 - 我还测试了整个程序与另一台不属于公司VPN的服务器(因此我不在iPad上使用VPN客户端),在这种情况下,安装适用于两台iPad。 But now I don't know - is there maybe some significant difference with the server? 但现在我不知道 - 服务器可能有一些显着的差异吗?

or is the problem connected to the fact that access goes through the VPN? 或是问题与访问通过VPN的事实有关?

Why does it work on iPad1 but not on iPad3 - is there anything different in iOS6 that could cause the problem? 为什么它可以在iPad1上运行而不能在iPad3上运行 - iOS6中有什么不同可能会导致问题吗?

Does the download link need to look differently for iOS6 devices? 对于iOS6设备,下载链接是否需要有所不同?

Any help appreciated! 任何帮助赞赏! Thanks! 谢谢!

Not sure, but you might try eliminating the display-image and full-size-image keys. 不确定,但您可以尝试删除显示图像和全尺寸图像键。 Maybe it's an issue with retina image sizes. 也许这是视网膜图像尺寸的问题。

I had something similar, though no VPN, just a plain Wi-Fi setup. 我有类似的东西,虽然没有VPN,只是一个普通的Wi-Fi设置。 iPhone4, iPhone5 and iPad2 all running iOS6 can install OTA with no issues. 所有运行iOS6的iPhone4,iPhone5和iPad2都可以安装OTA而不会出现问题。 At the same time, iPhone4S and iPad1 running iOS5 fail to install the app OTA. 与此同时,运行iOS5的iPhone4S和iPad1无法安装应用程序OTA。 Normal installation via iTunes sync works fine for all devices. 通过iTunes同步进行的正常安装适用于所有设备。 It's obviously an issue with OS version, but I have no idea where to look for next. 这显然是操作系统版本的一个问题,但我不知道下一步该在哪里寻找。 Is it in the build settings for the app or something related to server config (IIS in this case)... 是在应用程序的构建设置中还是与服务器配置相关的内容(在本例中为IIS)...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM