iOS Over-the-Air mobile Ad-Hoc downloading: "Could not Extract Archive" error
Solution 1
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.
Solution 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.
Solution 3
Go to Product -> Edit Schema -> Build Configuration
Change Debug to Release and try it.
Solution 4
Yes we had same problem
WRONG
Application URL:http://www.mycompany.com/
RIGHT
Application URL:http://www.mycompany.com/MyApp.ipa
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!!!!
Brad
Software/Hardware Engineer iPhone, Linux, Linux Kernel, Embedded Systems, low-level storage, device drivers and filesystems
Updated on June 04, 2022Comments
-
Brad about 2 years
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.
-
Brad over 13 yearsI don't thInk this is it. I was using scp which doesn't make a distinction. You were probibly using FTP, which does.
-
Brad over 13 yearsNo - it points to the directory where all the files are. Is it supposed to point to the IPA file itself?!
-
Ben Wyatt almost 11 yearsThis is one of those answers that I feel like should have WAY more votes than it does. Thank you, two years later, for saving me hours of frustration.