简体   繁体   English

带有库和应用程序调试符号的XCode项目

[英]XCode Project with Library and App Debug Symbols

I have a simple XCode project with a static library consumed by an iOS app. 我有一个简单的XCode项目,其中包含一个由iOS应用程序使用的静态库。

When the iOS app crashes, I end up with a stack trace that goes into the library but I just get assembly, not my library's source. 当iOS应用崩溃时,我最终得到了堆栈跟踪,该跟踪进入了库,但是我只是得到了汇编,而不是库的源代码。

Is there a way to symbolicate my project? 有没有办法象征我的项目?

If you have the librarys source, just create a subproject in your XCode project with it. 如果您具有库源,则只需在XCode项目中创建一个子项目即可。 Then add the reference in your main poject to link against the static library that it will be build automatically from XCode (for the architecture you use in your main project). 然后在主项目中添加引用以链接到静态库,该静态库将通过XCode自动构建(针对您在主项目中使用的体系结构)。 After this you can directly debug and see crash symbols (even in the Crash Logs from TestFlight and AppStore Releases). 之后,您可以直接调试并查看崩溃符号(甚至在TestFlight和AppStore版本的崩溃日志中)。

This is working with C, C++ and Objective-C librarys (compared). 这可用于C,C ++和Objective-C库(相比)。 Never builded a Swift library but should be no problem aswell. 从未构建过Swift库,但也应该没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM