“畸形对象”是什么意思?在 Mac OS X 中由名为 install_name_tool 的命令生成?
我正在尝试在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您输入
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.