How to set path for 'Header Search path' when adding 3rd party library to iPhone app

谁说胖子不能爱 提交于 2020-01-14 09:17:11

问题


I want to add a 3rd party library Speech-To-Textto my Xcode project. I just drag xcodeproj file in my iPhone project.Then I did follow steps like Target Dependencies,Link Binary with libraries and set Header Search path. But I confused in how to set Header search Path properly.Then I import #import SpeechToTextModule.h' that time i got error like SpeechToTextModule.h file not found.Please help me.

Thanks in advance!!!


回答1:


Following are the steps to add header search path for external 3rd party libraries :

  1. Select build settings of project
  2. Select Header Search Paths property from settings
  3. Add header directory, dont forget last /and surrounding quotes



回答2:


For static library, along with library we need to add header files to Xcode project.



来源:https://stackoverflow.com/questions/15195357/how-to-set-path-for-header-search-path-when-adding-3rd-party-library-to-iphone

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