Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add a User Header Search Path to a podspec

Tags:

ios

cocoapods

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:

enter image description here

like image 412
timpone Avatar asked Feb 10 '15 06:02

timpone


1 Answers

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.

like image 51
ERU Avatar answered Oct 09 '22 09:10

ERU