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:

enter image description here

  • structure of headers folders

enter image description here

the import process starts highlighted blue file pjsua.h imports other headers, marked red rectangles.

  • the complete list of imported headers in pjsua.h

enter image description here

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:

  1. headers paths right.
  2. 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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -