3

我在一家大公司工作,我正在为 iOS 5+ 开发一个 iOS 应用程序。分发应用程序的唯一方式是通过临时部署。

我拥有自己的服务器已经有一段时间了,由 o2switch(法国主机商)托管。在我开始开发时,我们使用它来部署应用程序以进行 beta 测试。它工作得很好。

随着应用程序进入最后阶段,该公司在 o2switch 购买了相同的(事实上,他们只有一个)计划(因为它在我的服务器上运行良好)。“新”服务器工作正常,我们有 iOS 应用程序所需的文件,我们可以正确访问它们。

我的问题是,当我部署到公司的服务器时,安装不断崩溃!应用程序图标下方的栏是空的,几乎已满(很快),我收到一条错误消息,提示无法安装该应用程序。(经典的)

我有众所周知的崩溃日志:

unknown itunesstored[1657] <Notice>: MS:Notice: Installing: com.apple.itunesstored [itunesstored] (690.10)
unknown wifid[23] <Error>: WiFi:[375199765.346102]: Client itunesstored is background application
unknown securityd[1659] <Notice>: MS:Notice: Installing: (null) [securityd] (690.10)

unknown SpringBoard[62] <Warning>: could not save thumbnail for downloading icon: image=(null) path='/var/mobile/Library/SpringBoard/DownloadingIconImageCache/***********'
unknown sandboxd[1661] <Notice>: MS:Notice: Installing: (null) [sandboxd] (690.10)
unknown installd[1663] <Notice>: MS:Notice: Installing: (null) [installd] (690.10)
unknown SpringBoard[62] <Warning>: could not save thumbnail for downloading icon: image=(null) path='/var/mobile/Library/SpringBoard/DownloadingIconImageCache/***********'

unknown keybagd[1665] <Notice>: MS:Notice: Installing: (null) [keybagd] (690.10)

unknown securityd[1667] <Notice>: MS:Notice: Installing: (null) [securityd] (690.10)

unknown SpringBoard[62] <Warning>: Killing *********** for app installation
unknown installd[1663] <Error>: 2ffc1000 extract_package: Could not extract archive
unknown installd[1663] <Error>: 2ffc1000 stage_package: Could not extract /var/tmp/install_staging.I0rwBH/foo.zip to /var/tmp/install_staging.I0rwBH/foo_extracted
unknown com.apple.itunesstored[1657] <Notice>: MobileInstallationInstall: failed with -1
unknown installd[1663] <Error>: 2ffc1000 MobileInstallationInstall: Could not stage the package
unknown installd[1663] <Error>: 2ffc1000 handle_install: API failed
unknown installd[1663] <Error>: 2ffc1000 send_message: failed to send mach message of 71 bytes: 10000003
unknown installd[1663] <Error>: 2ffc1000 send_error: Could not send error response to client

我已经尝试了很多来摆脱这个错误,但似乎没有任何效果。我已经阅读了关于这个问题的每一个答案,并尽我所能。我重新下载了配置文件,更新了内部版本号,检查了 ipa 的 url,还有很多其他的东西.. 没有任何效果。

我必须快速交付应用程序,所以我尝试了最后一件事:把它放在我的服务器上。它工作得很好。第一次尝试,没有问题(也许有一次,栏没有逐步加载而是保持灰色然后很快填充为蓝色,但这不是问题,我知道它下载了在线版本)。然后我重新尝试上传到新服务器,同样的问题。

顺便说一句,我测试过:iPhone4/iOS5、iPhone4S/iOS6、iPhone5/iOS6、iPad3/iOS6 和其他一些设备,超过 3G(3 个不同的提供商)和 Wifi,每次都出现同样的问题。

所以,我的问题如下:

服务器是否/如何影响临时部署?

如果需要,我可以提供有关服务器配置的信息。请告诉我您需要什么信息。

O2switch 正在调查,但他们对 iOS ad-hoc 部署知之甚少,所以他们真的不知道去哪里寻找、安装调用什么服务等。

所以我(再次)转向你,SO 的社区!有任何想法吗 ?

4

3 回答 3

2

Did you edit the App.plist file before you moved it to the new server?

The assets url must be absolute, like this: <string>http://someurl.com/App-1.0.0.ipa</string>.

于 2012-11-28T13:17:33.467 回答
2

如果您绝对确定服务器返回正确的 mime 类型,请通过以下方式检查:

lynx -mime_header http://www.serveraddress/App.plist | head -10

如果您确定 html 文件中的 .plist 文件的链接中没有空格或换行符。
如果您确定已将设备添加到配置文件
并且如果您已阅读:http
://www.informit.com/articles/article.aspx?p=1829415&seqNum= 16 我有所有文件:.plist、.html、 .ipa 在同一文件夹中

然后我不知道是什么问题,建议您从您的工作服务器分发它。

于 2012-12-01T14:06:59.543 回答
2

检查 web-server 中的 mime-type 配置。你需要:

application/xml对于.plist文件,和

application/octet-stream.ipa文件。

于 2012-11-26T10:22:46.697 回答