install_name_tool 报告格式错误的对象 [英] install_name_tool reporting malformed object

查看:111
本文介绍了install_name_tool 报告格式错误的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试在我的机器上使用 install_name_tool 时,它都会报告以下内容

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)

我读到构建二进制文件时可能会出错.为了检查我创建了最简单的 hello world c++ 程序并尝试使用 install_name_tool 进行更改.没用.我做错了什么?

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?

目前我有运行 Snow Leopard OS 的 XCode 4.2.

Currently I have XCode 4.2 running Snow Leopard OS.

推荐答案

显然 install_name_tool 在 XCode 更新时没有更新.您需要从 XCode 首选项安装命令行工具.另请参阅 OS X Lion 上的 install_name_tool.这为我解决了同样的错误.

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.

这篇关于install_name_tool 报告格式错误的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆