iOS 无线移动临时下载:“无法提取存档”错误
我正在尝试通过网络在我的 iOS 4.2 设备上下载我的应用程序。
我已经通过 XCode 验证了我构建的应用程序可以在我的设备上正确安装和运行 - 即应用程序应该正确构建和签名。我通过“构建和存档”和“共享...”将其打包 - 然后将 .plist 和 .ipa 文件上传到我的服务器,我有正确的链接,等等...等...
当我尝试安装它(无线),它显示“正在等待...”,然后“正在加载...”,然后“正在安装...”,然后我收到错误:“无法下载'myAppName'” - (完成)(重试)。
检查 iPhone 上的控制台,我得到以下信息:
1 月 8 日星期六 18:30:50 未知 安装[26090]:2ff66000 extract_package:无法提取 存档 1 月 8 日星期六 18:30:50 未知 安装[26090]:2ff66000 stage_package:无法解压 /var/tmp/install_staging.ReUsa4/foo.zip 到 /var/tmp/install_staging.ReUsa4/foo_extracted 1 月 8 日星期六 18:30:50 未知 安装[26090]:2ff66000 移动安装安装:无法 1 月 8 日星期六 18:30:50 上演包裹 未知安装[26090]: 2ff66000 handle_install:API 失败 1 月 8 日星期六 18:30:50 未知 com.apple.itunessstored[26087] :手机安装安装: 失败,-1
看起来像是一堆问题“提取存档”。有人知道这是什么意思吗? 有什么想法吗???
更新: 我在 Diawi 网站上安装了这个 - 它工作得很好。所以,这不是代码签名问题。
I am trying to download my application over the web on my iOS 4.2 device.
I have verified that the application I have built installs and runs correctly on my device through XCode - i.e. The application should be built and signed correctly. I package it through "Build and Archive" and "Share..." it - then upload the .plist and .ipa files to my server, which I have the correct links to, etc..etc...
When I try to install it (over-the-air), it says "Waiting...", then "Loading..." then "Installing...", then I get an error: "Unable to Download 'myAppName'" - (Done) (Retry).
Checking the console on my iPhone, I get the following:
Sat Jan 8 18:30:50 unknown
installd[26090] : 2ff66000
extract_package: Could not extract
archive Sat Jan 8 18:30:50 unknown
installd[26090] : 2ff66000
stage_package: Could not extract
/var/tmp/install_staging.ReUsa4/foo.zip
to /var/tmp/install_staging.ReUsa4/foo_extracted
Sat Jan 8 18:30:50 unknown
installd[26090] : 2ff66000
MobileInstallationInstall: Could not
stage the package Sat Jan 8 18:30:50
unknown installd[26090] :
2ff66000 handle_install: API failed
Sat Jan 8 18:30:50 unknown
com.apple.itunesstored[26087]
: MobileInstallationInstall:
failed with -1
Looks like a bunch of problems "Extracting Archive". Anyone know what this means?
Any ideas???
UPDATE: I the Diawi web site to install this - and it worked fine. So, it's not a code signing issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我正在将我的 ipa 上传到一个用于修补的共享主机。我尝试了另一个主机,效果很好。
对于未来的 Google 用户,以下是我在管理器中的设备上遇到的错误
I was uploading my ipa to a shared host that I use for tinkering. I tried another host and it worked fine.
For future googlers, here's the errrors I was getting on my device in Organizer
我也有同样的问题。
我为 iPad 应用程序创建了一个 Ad-Hoc Distribution 版本,URL 正确,但随后将 .plist 和 .ipa 文件复制到我的 FTP 站点上的错误目录中。
将其复制到正确的位置(与我创建存档时的“应用程序 URL”设置相对应)修复了此问题。
叹。如果终端能够为我们提供一个易于阅读的描述,说明为什么此类应用程序无法安装,那不是很好吗?
I had the same problem.
I had created an Ad-Hoc Distribution release of my iPad app, had the URL correct, but then copied the .plist and .ipa files into the wrong directory on my FTP site.
Copying it to the correct place (which corresponded with the "Application URL" setting when I created the Archive) fixed this issue.
Sigh. Wouldn't it be nice if the Terminal gave us an easy-to-read description of why such apps had failed to install...
您确定在进行 Enterprise 分发时输入的 URL 指向您的 IPA 文件吗?事实上,它在那里显示 foo.zip 似乎指向这个方向。
Are you positive that the URL you entered when you did the Enterprise distribution, points to your IPA file? The fact it is showing foo.zip in there seems to point in that direction.
人们可以检查的另一件事是部署目标版本与 iPad iOS 版本。就我而言,我正在构建 4.3 目标,而我的 iPad 则为 4.2.1。在我构建 4.2 并上传后,一切正常。
Another thing one may check is the deployment target version vs. iPad iOS version. In my case I was building 4.3 target, while my iPad was at 4.2.1. After I built 4.2 and upload, things works fine.
是的,我们遇到了同样的问题,
线索位于图标下方的进度栏中:
如果您看到“无法下载”并且栏位于 0,那么我发现 plist 中的某些内容有问题。
测试 plist 中的所有 URL。它们应该可以在浏览器中打开/下载。
如果进度条移动得太快,它可以找到图像,但 IPA 有问题,请检查 URL。
如果它移动缓慢,我发现它可以下载 IPA。
如果达到 75% 并且失败,通常意味着它已经下载了可以下载的内容,但现在安装失败。
如果您看到解压缩错误 - “无法解档”,请打开管理器/您的设备/控制台日志,
这表明 ipa 出现问题。
我们有错误的 URL http://www.mycompany.com/ 所以认为它下载了 default.htm 因为我们说这是应用程序 URL,然后尝试解压缩它,但失败了。
苹果蹩脚的文档没有给出示例,这对这一切都没有帮助!
Yes we had same problem
A clue is in the progress bar under the icon:
if you see Unable to Download and the bar is at 0 then I found that something in the plist is wrong.
Test All URLS in plist. They should be openable/downloadable in a browser.
If the progress bar moves too quickly it can find the images but the IPA is a problem, check the URL.
If it moves slowly I found its downloding the IPA ok.
If it gets to 75% and fails it usually mean its downloaded what it can and is now failing on install.
Open organizer/Your device/Console logs
if you see unzip error - "cant unarchive" theres something wrong with ipa.
We had wrong URL http://www.mycompany.com/ so think it downloaded default.htm because we said this was the application URL then tried to unzip it and failed.
NONE OF THIS IS HELPED BY APPLES CRAPPY DOCs NOT GIVING AN EXAMPLE!!!!
转到产品->编辑架构 ->构建配置
将“调试”更改为“发布”并尝试。
Go to Product -> Edit Schema -> Build Configuration
Change Debug to Release and try it.
我解决了我的问题,也许你也有同样的问题。当将 .ipa 文件上传到我的网站时,我是以 ASCII 文件的形式上传的,而它本来应该是二进制的。无论您使用何种方式上传文件,请确保您可以指定用于上传文件的传输类型。希望这有帮助
I figured my problem out, maybe you are having the same issue. When uploading the .ipa file to my website I was doing so as an ASCII file when it should have been as a binary. Whatever way you are using to upload the files make sure you can specify the transfer type used to upload them. Hope this helps