Alexander Sergeev's blog

AdHoc application installation error: thank you, Apple.

My client failed to install my AdHoc build on his iPhone.
The phone just said “Failed to install XXX. Done/Retry?”

iTunes failed with a message “Unknown error” and a link to non-existing page on Apple site.
Of course, my client was not happy so am I.

After connecting the phone to Mac and looking at Console (XCode->Window->Organizer->Console) I realized that XCode 4 doesn’t support ARMv6 architecture by default (do they consider that everyone bought iPhone 4 (S?) already?)


Thu Dec 8 21:24:02 unknown installd[1915] : 2ff68000 preflight_application_install: Incorrect architecture at /var/tmp/install_staging.SLcAhM/foo_extracted/Payload/XXX.app
Thu Dec 8 21:24:02 unknown installd[1915] : 2ff68000 install_application: Could not preflight application install
Thu Dec 8 21:24:02 unknown com.apple.itunesstored[1908] : MobileInstallationInstall: failed with -1

Thank you, Apple! That’s so obvious.

Googling by iTunes error code gives my hundred possible reasons (and no mention to wrong architecture).
Of course, wrong building options was my mistake, but it is very hard to realise what’s going on by such informative error messages.

So I added armv7 to architecture list in project options Build settings -> Architectures and voila! Everything works fine now.

Share

Category: IT

Tagged:

Leave a Reply

You must be logged in to post a comment.




Forgot?
Register
Facebook login by WP-FB-AutoConnect