i have written a small Rails Application where i can upload three Files which i needed to distribute the adhoc builds over-the-air. This includes a .ipa File, a .mobileprovisioning File and a .plist File.
The Problem is now, when i click on the link to the .ipa File the File is treated as a normal Download and my iDevices asks me where to store the file.
curl -I example.com/path/to/App.ipa
generates this output
HTTP/1.1 200 OK
Date: Thu, 25 Oct 2012 13:55:08 GMT
Cache-Control: public, max-age=0
Last-Modified: Thu, 25 Oct 2012 10:23:07 GMT
ETag: "742-1351160587000"
Content-Type: application/octet-stream
Accept-Ranges: bytes
Content-Length: 742
Connection: keep-alive
i think application/octet-stream is the correct content type. What am i doing wrong?
Thank you in advance for your answer
Regards,
buk
An .ipa file is just a (not very well disguised) zip file (it’s just renamed to
.ipa). Maybe when you set the genericapplication/octet-streamMIME-type, the Safari browser on iOS looks at the actual contents of the file, finds out that it’s actually a ZIP archive and proceeds. By the way, it seems to me that you want to do some in-house or ad-hoc distribution of iOS apps. In this case, you should really direct the user towards the manifest.plist file which (an URL beginning withitms-services://) in order iOS to know that it needs to look for an application bundle and then download and install it.Documentation here.