add a User Header Search Path to a podspec

后端 未结 1 768
一整个雨季
一整个雨季 2021-01-13 04:05

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

相关标签:
1条回答
  • 2021-01-13 04:32

    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.

    0 讨论(0)
提交回复
热议问题