I'm having trouble with over the air (OTA) distribution for my Ad-Hoc builds. Building a universal iPhone/iPad app with base SDK 6.1, deployment target 5.0, architectures armv7 and armv7s. The very same ad-hoc build installs OTA on iOS 6 devices (3 different iPhone5, one iPhone4 and iPad2), but fails to install OTA on iOS 5 devices (iPhone4S and iPad1).
The OTA happens via IIS with all MIME types set properly (otherwise it would fail for iOS 6).
On iOS 5 devices it starts installation showin app icon with progress bar, first title is "Waiting...", then changes to app name, then alert view shows up saying
Unable to Download Application
could not be downloaded at this time.
Done/Retry
Connected device to Xcode to see logs in organizer. Console has the following:
apsd[48] : : Stream error occurred for : Error Domain=NSPOSIXErrorDomain Code=61 "The operation couldn’-t -b-e -c-o-m-p-l-e-t-e-d-. -C-o-n-n-e-c-t-i-o-n -r-e-f-u-s-e-d-" -U-s-e-r-I-n-f-o-=-0-x-1-4-7-0-8-0 -{-}
Exactly like that, including "-" characters.
Installing same ad-hoc build on same iOS 5 devices via iTunes sync works as expected, no errors.
Account type is a "plain" developer account, not Enterprise.
I already tried to create all provisioning profiles from scratch. Didn't try to delete and create new certificates yet, hope it's not required.
App does not use iCloud or Pushes, or anything. No Entitlements.plist is included into the bundle.
Might be important to mention the fact that app is build with CocoaPods - a bunch of 3rd party libraries built as Pods target.