Friday, 15 June 2012

ios - Cocoapods/Podspec exclude headers from HEADER_SEARCH_PATHS -



ios - Cocoapods/Podspec exclude headers from HEADER_SEARCH_PATHS -

some projects i'm working on depend on set of c libraries want manage wonderful cocoapods. each library has private headers ctype.h, errno.h, string.h deep in structure. need them copied pods/headers, not flattened in header_search_paths breaks build process.

c-library has next structure:

mylib/include/mylib.h mylib/include/core/errno.h ...

i want headers copied pod headers folder, header_search_paths include "mylib/include" only.

everything add together using source_files or public_header_files goes header_search_paths in various pod .xconfig. if exclude headers, disappear header_search_paths, not copied headers.

any ideas how solve such problem?

you should define headers want hidden private_header_files

ios cocoapods

No comments:

Post a Comment