Dec 8, 2011
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]
Thu Dec 8 21:24:02 unknown installd[1915]
Thu Dec 8 21:24:02 unknown com.apple.itunesstored[1908]
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.