Alex Rivera | Logout

iPhone Codesign object file format invalid or unsuitable

Asked 2011-01-30T11:50:52.247
38

I accidentally deleted my target in xcode.

so i created a new one with the exact same name. in the target settings i again selected the proper codesigning identity

but now i can't compile for the device anymore. as soon as i want to build, i get:

CodeSign build/Release-iphoneos/myApp.app
....somestuff....
/Volumes/XCodeProj/myApp/build/Release-iphoneos/myApp.app: object file format invalid or unsuitable
Connad /usr/bin/codesign failed with exit code 1

I already tried to clean targets. what could cause this problem and how to solve it?

Edit
Report

1 Answer

7

For me, this was occurring after upgrading to XCode 4.5.

The solution was simply to go to Preferences / Downloads and install the latest Command Line Tools.

answered 2012-10-05T09:24:16.227

Your Answer