调试符号在链接过程中丢失...?
我正在使用 XCode 3.2 进行 iOS 开发。我使用 -g
选项在调试模式下将代码编译到静态库中。然后,我将此库与一个更大的静态库链接,该静态库具有 main
来创建最终的可执行文件。该库是在发布模式下构建的,没有任何调试支持。现在,当调试崩溃时,我看不到代码的符号。他们去哪儿了?它们被链接器剥夺了吗?如何使链接器保留我的库的调试信息?我无法控制其他图书馆,因此我无法在那里做任何事情。
I am developing for iOS with XCode 3.2. I compiled my code in debug mode with the -g
option into a static library. I then linked this library with a bigger static library which has the main
to create the final executable. This library was built in release mode without any of the debugging support. Now when debugging crashes, I don't see the symbols for my code. Where did they go? Were they stripped by the linker? How can I make the linker retain the debugging information for my library? I have no control over the other library so I won't be able to do anything there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您可以构建库,请在构建设置中
If you can build your library, in the Build Settings