igorsokolov / fruitstrap

Install and debug iPhone apps from the command line, without using Xcode
Other
26 stars 6 forks source link

AMDeviceInstallApplication failed: -402653058 #3

Open xtreme-daniel-lee opened 12 years ago

xtreme-daniel-lee commented 12 years ago

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

Connorhd commented 12 years ago

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.

xtreme-daniel-lee commented 12 years ago

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

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

Connorhd commented 12 years ago

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

xtreme-daniel-lee commented 12 years ago

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.