在 Xcode 中修改导出符号文件的正确方法是什么?
我正在修改现有的项目框架,它是一个自定义的 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 技术交流群。

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