Add user header search path to podspec

This is a continuation of this question: it is possible that CocoaPods has a search path that includes the main application

I would like to add the Add User Header Search Path to my .podspec so that it is added at compile time, but I'm not sure how to do it so it looks like this:

enter image description here

+3
ios cocoapods
source share
1 answer

Add this code to your .podspec file:

 s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."' } 

To set the recursive path:

 s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."/**' } 

I did Google and this issue on GitHub helped me.

+4
source share

All Articles