The Widmann Blog

Calendar

November 2011
S M T W T F S
« Oct   Dec »
 12345
6789101112
13141516171819
20212223242526
27282930  

Other Blogs

/usr/bin/codesign_allocate



iX-ray
Originally uploaded by slowburn♪

I’ve been trying for a wee while to deploy iOS apps to my two-year-old iPod Touch. I kept getting an error message from codesign: “object file format invalid or unsuitable”.

At first I thought it had something to do with my provisioning profile or something, or perhaps that my iPod was too old to work with the newest Xcode, but the error turned out to be quite different, obscure, yet simple to fix.

I found the solution in Martian Storm. Somehow /usr/bin/codesign_allocate had been deleted (or never created), so I needed to issue the command

sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin

That was all that was wrong – it works beautifully now!

Filed under lang • enIT

Wordpress theme designed by Complexli Limited.