xcode - xcodebuild cannot find header in embedded projects -


i have project embed project, , xcode gui build successful, in command line xcodebuild failed such.

   fatal error: 'ohattributedlabel/ohattributedlabel.h' file not found    #import <ohattributedlabel/ohattributedlabel.h>            ^    1 error generated. 

but had in project header search path (where h located)

   ${project_dir}/myproject/vendor/ohattributedlabel/source 

the problem header located in "ohattributedlabel/source" folder, while import statement looking header under ohattributedlabel folder, don't want touch embedded project directory structure, can in case?

the best way modify embedded project publish header files:

  1. select embedded project in xcode
  2. select applicable target.
  3. click on build phases
  4. expand "copy headers" section , add ohattributedlabel.h file.
  5. select main project
  6. select applicable target.
  7. click on build phases.
  8. click on target dependencies.
  9. make sure embedded project added dependency.
  10. try run app

if above doesn't work double-check order of build phases. e.g. make sure "target dependencies" build phase before "compile sources".


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -