用于创建 iOS 应用程序时导出静态库的符号 [英] Export Symbols of Static Library When Used for iOS App Creation

查看:32
本文介绍了用于创建 iOS 应用程序时导出静态库的符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打包在静态库中的一些代码(使用libtool)应该在另一个项目中用于构建iOS应用程序.为了使崩溃分析成为可能,应用程序的 .dSYM 还应包含我的静态库的符号.我假设我必须以某种方式将符号包含在库中,或者必须将一些符号文件传递给创建 .dSYM 的构建步骤.

Some code packed up in a static library by me (using libtool) should be used in another project to build an iOS application. To make crash analysation possible, the .dSYM of the app should also contain the symbols of my static library. I assume I have to somehow either include the symbols in the library proberly or have to pass some symbols file to the build step that creates the .dSYM.

这可能吗?我对创建 .dSYM 过程中涉及的所有步骤感到有些不知所措.如果有人提供有关此方面良好信息的链接,我将不胜感激.

Is this possible? I am a bit overwhelmed by all the steps involved in the process of creating the .dSYM. If someone has some link with good information about this, I would appreciate that.

另外,如何快速确定 .dSYM 中的所有符号?

Also, how can I quickly determine all the symbols in the .dSYM?

推荐答案

对于包含所需符号的静态库,当将静态库链接到应用程序时,它们将成为应用程序 dSYM 的一部分,您需要确保静态库具有以下构建设置:

For static libraries to contain the required symbols, so they will be part of the apps dSYM when linking the static library to the app, you need to make sure the static library has the following build settings:

  • 复制期间去除调试符号:否
  • 条带样式:调试符号
  • 剥离链接产品:否

这篇关于用于创建 iOS 应用程序时导出静态库的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆