Export Symbols of Static Library When Used for iOS App Creation

雨燕双飞 提交于 2019-12-07 16:23:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!