xcode - How can I remove headers from my custom frameworks? -


i have mac cocoa application uses several custom frameworks. (apple calls them private, it’s frameworks distributed in app bundle application.) inside each framework there headers folder framework’s header files. these not needed inside resulting application bundle & i’d keep them private. use run script build phase following line:

# remove headers our private frameworks find "${target_build_dir}" -name headers -print0 | xargs -0 rm -rf 

is way it, or there better one?


more project structure: have 3 xcode projects nested in main project, these projects have private frameworks products. frameworks set target dependency main target. , last part of setup copy files build phase takes frameworks , copies them frameworks subfolder inside application bundle. (hope clear enough.)

you have copy headers build phase in place framework. can:

1) remove it,

2) individually specify headers' visibility in ide,

3) or add/remove them copy headers phase

i set targets build dependencies, with:

  • custom search paths headers
  • a copy phase fmwk
  • no copy headers phase

you may choose differently (e.g. build fmwk explicitly, or export headers).

if (eventually) don't satisfactory answer, more details projects' structures may help, because there number of ways configure this.

good luck


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -