install_name_tool reporting malformed object

McLeary picture McLeary · Apr 30, 2012 · Viewed 8.2k times · Source

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.

Answer

Maarten O. picture Maarten O. · Jan 9, 2013

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.