3
這是一個後續行動這樣一個問題:possible to have a CocoaPods have a search path that includes the main app用戶頭搜索路徑添加到podspec
我想補充添加User Header Search Path
我.podspec使得它添加,當我編譯,但我也不太清楚如何做到這一點,以便它的效果是這樣的:
這是一個後續行動這樣一個問題:possible to have a CocoaPods have a search path that includes the main app用戶頭搜索路徑添加到podspec
我想補充添加User Header Search Path
我.podspec使得它添加,當我編譯,但我也不太清楚如何做到這一點,以便它的效果是這樣的:
將此代碼添加到您的.podspec
文件:
s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."' }
設置路徑recursive
:
s.xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '"${PROJECT_DIR}/.."/**' }
我做了谷歌,這issue在GitHub上幫助了我。