xcodeosx-snow-leopardinstall-name-tool

install_name_tool reporting malformed object


Everytime I try to use install_name_tool on my machine it reports the following

install_name_tool: object: Abacate malformed object (unknown load command 4)

I read that it could be an error when building the binary. In order to check I create the simplest hello world c++ program and try to change something using install_name_tool. Didn't work. What Am I doing wrong?

Currently I have XCode 4.2 running Snow Leopard OS.


Solution

  • Apparently install_name_tool is not updated when XCode is updated. You need to install the Command Line Tools from XCode Preferences. See also install_name_tool on OS X Lion. This resolved the same error for me.