fruitstrap icon indicating copy to clipboard operation
fruitstrap copied to clipboard

AMDeviceInstallApplication failed: -402653058

Open xtreme-daniel-lee opened this issue 13 years ago • 4 comments

Hello,

I am using fruitstrap well, in Mountain Lion. However, when trying on a Jenkins box running Lion (10.7.4), i can get up to 70% installed ([ 70%] "VerifyingApplication") before the error AMDeviceInstallApplication failed appears.

Does anyone know why this is happening, or how it can be worked around? Please help, thanks.

Dan

xtreme-daniel-lee avatar Oct 12 '12 15:10 xtreme-daniel-lee

Have you tried installing the application manually through iTunes or Xcode from that box? You can sometimes get a better error message that way. You can also check the devices console log from Xcode to see if it logged a more readable error.

Connorhd avatar Oct 12 '12 15:10 Connorhd

Tried to manually install via iTunes; "application failed to install". Opening Xcode and viewing the console logs shows the following:

Oct 12 12:14:34 unknown installd[1881] <Error>: 00381000 verify_signer_identity: Could not copy validate signature: -402620391 Oct 12 12:14:34 unknown installd[1881] <Error>: 00381000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.B3mQAF/*******-iPhone.app Oct 12 12:14:34 unknown installd[1881] <Error>: 00381000 install_application: Could not preflight application install Oct 12 12:14:34 unknown mobile_installation_proxy[1880] <Error>: handle_install: Installation failed Oct 12 12:14:34 unknown installd[1881] <Error>: 00381000 handle_install: API failed Oct 12 12:14:34 unknown installd[1881] <Error>: 00381000 send_message: failed to send mach message of 71 bytes: 10000003 Oct 12 12:14:34 unknown installd[1881] <Error>: 00381000 send_error: Could not send error response to client

Looks like a signing issue that i will need to look into.

xtreme-daniel-lee avatar Oct 12 '12 16:10 xtreme-daniel-lee

you may find "codesign -vvv iPhone.app" and "codesign -dvv iPhone.app" output helpful

Connorhd avatar Oct 12 '12 16:10 Connorhd

Thank you Connor. Issue was resolved using codesign:

codesign -s "[name of cert in my keychain]" [path to my .app] -f

I'm still trying to figure out why this works on one version of my app and not another. For the other app, Xcode logs show "unrecognized status -67068 from codsigning library".

Fortunately, I've gotten past half a road block with your suggestion. Thanks again, will continue moving forward.

xtreme-daniel-lee avatar Oct 12 '12 19:10 xtreme-daniel-lee