timpone
timpone

Reputation: 19969

add a User Header Search Path to a 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:

enter image description here

Upvotes: 8

Views: 11971

Answers (1)

Tong
Tong

Reputation: 1000

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.

Upvotes: 12

Related Questions