在 Xcode 中修改导出符号文件的正确方法是什么?

发布于 2024-12-03 09:48:19 字数 470 浏览 7 评论 0原文

我正在修改现有的项目框架,它是一个自定义的 JavaScriptCore 框架。 JavaScriptCore 导出符号文件包含在项目中。如何正确地将函数添加到列表中。

它们看起来像这样神秘:

__ZN3WTF21RefCountedLeakCounterD1Ev
__ZN3WTF23callOnMainThreadAndWaitEPFvPvES0_
__ZN3WTF23dayInMonthFromDayInYearEib
__ZN3WTF23waitForThreadCompletionEjPPv
__ZN3WTF27releaseFastMallocFreeMemoryEv
__ZN3WTF28setMainThreadCallbacksPausedEb

那么如何添加带有正确前缀和后缀的函数名称呢?

是否有我缺少的工具或缺少的步骤,除了我手动执行之外,似乎没有任何东西可以更改此文件?

提前致谢。

I am modifying an existing projects framework, its is a custom JavaScriptCore framework. The JavaScriptCore Export Symbol File is included in the project. How do I properly add a function to the list.

They look cryptic like this:

__ZN3WTF21RefCountedLeakCounterD1Ev
__ZN3WTF23callOnMainThreadAndWaitEPFvPvES0_
__ZN3WTF23dayInMonthFromDayInYearEib
__ZN3WTF23waitForThreadCompletionEjPPv
__ZN3WTF27releaseFastMallocFreeMemoryEv
__ZN3WTF28setMainThreadCallbacksPausedEb

So how do I add function name with the correct prefix and suffix on it?

Is there a tool that I am missing or a step I am missing, nothing seems to change this file, except for me doing it manually?

Thanks in advance.

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

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

发布评论

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

评论(1

追星践月 2024-12-10 09:48:19

您也可以使用 Unix 命令行 nm:

http://compute.cnr .berkeley.edu/cgi-bin/man-cgi?nm

nm 将打印二进制文件的符号表。然后,您可以在列表中找到您的方法,并将其剪切并粘贴到导出符号文件中。

You can use the Unix command line too nm:

http://compute.cnr.berkeley.edu/cgi-bin/man-cgi?nm

nm will print the symbol table of an binary. Then you can find your method in the list and cut and paste that into your export symbol file.

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