c - Header file not found in Xcode 7 -
i'm creating framework embeds c libraries. c libraries code exposed swift using .modulemap file. in build settings of target, under swift compiler - search paths section set path .modulemap file in import paths row. under search paths section, paths libraries , headers set, in library search paths , header search paths rows respectively. after adding framework app's project , trying build app, fails error pjsip.h file not found.
- values of
header search paths:
- structure of headers folders
the import process starts highlighted blue file pjsua.h imports other headers, marked red rectangles.
- the complete list of imported headers in
pjsua.h
you can see imported headers not living in same folder pjsua.h should successful import, isn't job of header search paths find headers ? don't want mess structure of headers folders, cause it's third party lib , each time updated each time 'magic' must done. include path defined in other c flags row same settings header search paths. i'm not sure i've missed.
note:
- headers paths right.
- they don't contain spaces.
p.s this doesn't help.
update:
this error showed when building simulator, building real device xcode fails multiple errors redefinition of ...
solution simple ugly. set header search paths , search paths main project too. that's not best way add framework project because exposes details framework it's way fix problem.



Comments
Post a Comment