问题
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.
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.
Also, how can I quickly determine all the symbols in the .dSYM?
回答1:
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:
- Strip Debug Symbols During Copy: No
- Strip Style: Debugging Symbols
- Strip Linked Product: No
来源:https://stackoverflow.com/questions/26461500/export-symbols-of-static-library-when-used-for-ios-app-creation