为什么归档期间dSYM中不包含静态库符号? [英] Why are static library symbols not included in dSYM during archive?

查看:85
本文介绍了为什么归档期间dSYM中不包含静态库符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为客户提供了一个非常主要的应用程序套件,其中有几个应用程序目标利用了我们内部制作的几个静态库.所有目标都包含在一个XCode项目文件中.

We have a pretty major application suite for a client with a couple application targets utilizing several static libraries that we made in house. All targets are contained in one XCode project file.

出于某些原因,在归档应用程序时,dSYM文件不包含静态库的任何调试符号.结果是,当尝试用符号表示来自现场代理的崩溃日志时,我们看不到这些静态库中正在发生什么.

For some reason when archiving an application the dSYM file does not contain any debug symbols for static libraries. The result is when trying to symbolicate crash logs from field agents we cannot see what is going on inside those static libraries.

我试图用一个应用程序目标和一个静态库创建一个新的简单XCode项目.即使这样,调试符号也丢失了.我根据 https://github.com/TheRealKerni/QuincyKit/issues/修改了构建设置91 没有运气.

I attempted to create a new simple XCode project with one application target and one static library. Even then the debug symbols were missing. I fiddled with the build settings according to this https://github.com/TheRealKerni/QuincyKit/issues/91 without luck.

如果我进行FOR归档,则包括调试符号.我在生成的dSYM文件上运行了dwarfdump,并能够看到静态库实现文件的符号.但是,当我随后尝试归档项目时,符号将被排除.

If I build FOR archiving the debug symbols are included. I ran dwarfdump on the resulting dSYM file and was able to see the symbols for the static libraries implementation files. However when I then attempt to archive the project the symbols are excluded.

我错过了什么吗?XCode版本4.4.1

Am I missing something? XCode version 4.4.1

推荐答案

我使用XCode 5.1.1遇到了同样的问题.

I m using XCode 5.1.1 and was having the same problem.

修复程序是将每个从属库项目的部署"部分下的条带链接产品"设置设置为否".有关更多详细信息,请参阅我的帖子

The fix was to set "Strip Linked Product" setting under "Deployment" section to "No" for each dependent library project. For more detail, please see my post at

我可以调试从ipa存档安装的ios应用程序

这篇关于为什么归档期间dSYM中不包含静态库符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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