OTA - myApp couldn't be installed at this time - Could not verify executable

brainray picture brainray · May 14, 2012 · Viewed 7.2k times · Source

After almost no problems for 6 months, I suddenly have a major problem when trying to distribute an app for inhouse testing over OTA: while installing the app (after download) I get the below error message -> screenshot. All of my testers also see the same message, so it's not bound to a single device.

The console on the device shows the following message:

preflight_application_install: Could not verify executable at /var/tmp/install_staging.uNQth4/foo_extracted/Payload/myApp.app

The strange thing is: I can install the app over USB with Xcode. Also the validation for the AppStore upload is fine.

I already tried a lot:

  • new Distibution Profiles
  • checked if the UDIDs are inside the profiles
  • checked for double profiles in the keychain
  • did Xcode Voodoo (clean build, erasing derived data)
  • tried to fix it with entitlements ('get-task-allow' = false)

Any idea to solve this would be very helpful. Thanks in advance.

unable to donwload application

Answer

brainray picture brainray · May 15, 2012

After further investigation the problem - once again - was caused by an invalid combination of Developer Provisioning Profile and Ad Hoc Distribution Profile. The problem was, that even the usual fixes didn't work (exchanging certificates etc.). Xcode always showed valid profiles.

I have read a lots of post that recommend a complete reinstallation of MacOS with the goal to have a clean installation of the KeyChain. I didn't want to kill my customized MacOS, so I created a virtual machine of Mac OS 10.7.3 + Xcode using VMWare. Then it was like 20 minutes to set everything up and the OTA worked! I think, it's a good idea to have a clean virtual OS handy for this case.