问题
I am developing an iPhone application .
As the application is location aware I am testing it on a different (where I am not present).
For that I am sending my friend a .mobileprovision profile and the application adhoc build.
But At his end the application installation stops in between .
In the device log it gives me the following log :
2:42:30 unknown mobile_installationd[164] <Error>: 00808800 install_embedded_profile: Skipping the installation of the embedded profile
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 verify_executable: Could not validate signature: e8008017
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 preflight_application_install: Could not verify /var/tmp/install_staging.HreENJ/foo_extracted/Payload/RestaurantApp .app/RestaurantApp
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 install_application: Could not preflight application install
Wed Nov 11 12:42:31 unknown mobile_installation_proxy[163] <Error>: handle_install: Installation failed
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 handle_install: API failed
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 send_message: failed to send mach message of 64 bytes: 10000003
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 send_error: Could not send error response to client
So can anyone tell me what this error says so the installation fails ?
I found this is a very common and frustrating problem . And not even one has a perfect solution.
The apple technical note :http://developer.apple.com/iphone/library/technotes/tn2009/tn2242.html
回答1:
Looks as though your provisioning profile is duff in some way. Here's now I normally work around the problem:
- Delete your whole build folder. Clean All should do this for you but does seem to leave bits behind from time to time
- Check the device ID in the Developer Center. Edit it if you need to.
- Download the profile again.
- Install the profile again.
- Quit Xcode and reload.
- Make sure you've set Xcode to use the new, ad hoc profile rather than your developer profile, for the Code Signing Identity of the configuration you will be using for the archive.
- Build
- Take a copy of the executable straight away
It would be neat if there was some way of finding which step went wrong, but until that happens it's usually best just to start from scratch unless you have very patient (or local) testers.
回答2:
It appears that the device on which your friend is trying to install your app is not able to validate the application's signature. Basically this means that the provisioning profile you sent to your friend does not match the actual signature (if any) applied when compiling for ad hoc distribution. Try checking the following:
- verify that you added a correct Entitlements.plist file to your application.
- verify that you added the Entitlements.plist file to your Ad Hoc settings for building the app.
- verify that the certificate you are using to sign the application (in your Ad Hoc settings) actually is valid for ad hoc distribution.
- verify that you actually built the application using a base sdk related to the device, not the simulator and the Ad Hoc distribution settings.
- verify that the provisioning profile you sent is meant for ad hoc distribution and that it includes correctly the device of your friend.
回答3:
Make sure there are no traces of SVN left behind in the .app package, had the same issue, after removing the hidden SVN directories, everything installed fine hope this helps..
回答4:
Blimey. It's mid-2014 and XCode 5 is still as infuriating as ever.
What's frustrating is that, even once you've jumped through Apple's new https
hoops to create your Ad-Hoc installer, your device might download the installation package, start installing it, silently fail (due to an incorrect/invalid Provision Profile) but then attempt to start downloading & installing again !!
It's only once you go into XCode \ Organiser, and select your device, that you can actually look at the logs and find out that a fatal error occured, have some idea of the cause, and start Googling for a solution. Why the device attempts to retry is beyond me.
And showing that vague "[Your application] could not be installed at this time
" error is just misleading. Often, this gives the impression that, ahh, perhaps later, it'll work. Go and have a coffee, and have again after lunch. Errr, no.
Anyway, rambling aside (before I vote myself down), just to say that I had this issue, and the cause what that I was attempting to create an Ad-Hoc (in-house) version of our iPad app, but I had the Production (App Store) version of the Provisioning Profile selected.
I rebuilt the app using the correct "In-house distribution" Provisioning Profile, deployed everything to our intranet, made sure that the .plist file was on a https
server (not a http server, otherwise the install would fail with another vague/irrelevant error message), and then it finally worked.
Oh, and I found the tips on this StackOverflow page to be a lifesaver.
Mike
(Off for a lie down. And a beer.)
回答5:
For error message "Could not install application on device: Error: A signed resource has been added, modified or deleted."
this could be one probable solution
来源:https://stackoverflow.com/questions/1715253/adhoc-app-installation-failed-in-iphone-why