问题
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 :
- Select build settings of project
- Select Header Search Paths property from settings
- 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