Denseman on the Rattis

Formerly known as the Widmann Blog

enIT

/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!

Leave a Reply

Your email address will not be published. Required fields are marked *