• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stripping headers from embedded frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stripping headers from embedded frameworks


  • Subject: Re: Stripping headers from embedded frameworks
  • From: Pete Yandell <email@hidden>
  • Date: Wed, 21 May 2003 00:00:40 +1000

On Tuesday, May 20, 2003, at 12:07 PM, Andrew Duncan wrote:

I have a PB project which uses a set of 6 embedded frameworks....

The final built application includes all the headers...

I'm left wondering if there's a way to have them stripped out at the end of
the build process, or to prevent them from being copied in in the first
place.

I add a shell script build phase to my projects and do the following:

cd "${BUILD_DIR}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}"

# This cleans out any headers that were copied to our binary
find . -name Headers -type d -exec rm -r {} \;
find . -name Headers -exec rm {} \;

That basically goes through the final executable looking for directories and aliases called "Headers" and deletes them all.

I should really be a little more cautious and delete the specific directories in included frameworks just in case there's something else called Headers that I don't want to delete, but I haven't run into trouble yet. :)

Pete Yandell
http://pete.yandell.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Stripping headers from embedded frameworks
      • From: Andrew Duncan <email@hidden>
References: 
 >Stripping headers from embedded frameworks (From: Andrew Duncan <email@hidden>)

  • Prev by Date: BOOLs, definition of YES
  • Next by Date: Re: try statement
  • Previous by thread: Stripping headers from embedded frameworks
  • Next by thread: Re: Stripping headers from embedded frameworks
  • Index(es):
    • Date
    • Thread