本文介绍了将用户标题搜索路径添加到podspec的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是这个问题的后续行动:帮助了我。
This is a follow-up to this question: possible to have a CocoaPods have a search path that includes the main app
I'd like to add add a User Header Search Path
to my .podspec so that it is added when I compile but I'm not sure how to do this so that it's effect is like this:
解决方案
Add this code to your .podspec
file:
s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."' }
To set path recursive
:
s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."/**' }
I did Google and this issue on GitHub helped me.
这篇关于将用户标题搜索路径添加到podspec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!