Export Symbols of Static Library When Used for iOS

2019-05-15 22:27发布

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条回答
三岁会撩人
2楼-- · 2019-05-15 23:22

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
查看更多
登录 后发表回答