I know that other similar questions have been posted, but none of these solutions worked for me. Updated to Xcode 4.5.1 from 4.3.3. Got this error:
Build/Products/Debug-iphoneos/MobileApp.app/MobileApp malformed object (unknown load command 19) /Users/garyt/Library/Developer/Xcode/DerivedData/MobileApp-cgojnkplmjncbaaigyvelwclibwr/Build/Products/Debug-iphoneos/MobileApp.app/: object file format unrecognized, invalid, or unsuitable Command /bin/sh failed with exit code 1
Follow the instructions here . We downloaded the latest command-line tools, tried to fix the sudo codesign_allocate fix, and checked that my names and values ββmatch both the target and the product, but at the same time, "the object file format is invalid or an unsuitable error appears." New to cocoa / iOS dev, and that was not the headache I expected. Any help would be greatly appreciated. I think I should also note that everything worked fine when I ran Xcode 4.3.3, from which I was updating.
source share