How to add .a C static library to Xcode and use it there? [duplicate]

[亡魂溺海] 提交于 2020-01-02 06:32:21

问题


I have a static C library compiled with arm7-gcc and i want to use it in my iOS project. i added it to project but i can't figure out how to use it.


回答1:


After adding the library to the project and including the header in your application codeб there is a second step. That step is letting the Xcode project know where the header file/files is/are. You do this by editing the "User Header Search Paths" build setting with the path to the header files.



来源:https://stackoverflow.com/questions/11830434/how-to-add-a-c-static-library-to-xcode-and-use-it-there

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