“畸形对象”是什么意思?在 Mac OS X 中由名为 install_name_tool 的命令生成?

发布于 2024-12-23 14:23:00 字数 305 浏览 4 评论 0原文

我正在尝试在 Mac OS X 中使用 install_name_tool ,并收到奇怪的错误消息,例如:

install_name_tool: object: libXyz.dylib malformed object (section contents at offset 0 with a size of 2176206, overlaps Mach-O headers at offset 0 with a size of 2288)

谁能解释一下“格式错误的对象”的含义,以及如何摆脱该消息?

I am trying to use install_name_tool in Mac OS X, and have weird error messages like:

install_name_tool: object: libXyz.dylib malformed object (section contents at offset 0 with a size of 2176206, overlaps Mach-O headers at offset 0 with a size of 2288)

Could anyone explain what "malformed object" means, and how I could get rid of the message?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

洋洋洒洒 2024-12-30 14:23:00

如果您输入 man install_name_tool,它会告诉您这是一个用于更改 dylib 中内置路径名的工具。该错误消息表明您正在尝试在无效的 dylib 上运行它。要消除该消息,请停止尝试在无效的 .dylib 上运行它,也许可以通过修复构建 dylib 的任何进程。

If you type man install_name_tool, it will tell you that it is a tool for changing the baked-in pathnames in dylibs. The error message indicates that you are trying to run it on an invalid dylib. To get rid of the message, stop trying to run it on an invalid .dylib, perhaps by repairing whatever process built the dylib.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文