• 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: can I remove header files from built-in framework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can I remove header files from built-in framework?


  • Subject: Re: can I remove header files from built-in framework?
  • From: Mike Ferris <email@hidden>
  • Date: Wed, 11 Dec 2002 17:24:03 -0800

You might want to add a -prune before the -exec to stop find from trying to descend into the Headers folder after it erases it... (not having this will only cause some harmless warnings from find, but having it will shut it up).

Also, instead of the prefix "build/" on your path use "${PRODUCT_BUILD_DIR}/" so it will work regardless of where the user has chosen to put build products.

Mike Ferris

Begin forwarded message:

From: Dave Camp <email@hidden>
Date: Wed Dec 11, 2002 2:34:47 PM US/Pacific
To: email@hidden
Subject: Re: can I remove header files from built-in framework?

I've used this in one of my projects... modify as needed for your project.

find "build/$PRODUCT_NAME.plugin/Contents/Frameworks" -name Headers -exec rm -r "{}" ';'

Dave

On Wednesday, December 11, 2002, at 01:44 PM, Mike Ferris wrote:

You could do it easily enough with a shell script build phase that runs only on install as part of either the app or the framework target... I would probably put it in the application target (sometime after the copy files phase that embeds the framework, of course).

I don't have a script handy, but it should be pretty straightforward.

Mike


Begin forwarded message:

From: matt neuburg <email@hidden>
Date: Wed Dec 11, 2002 1:06:50 PM US/Pacific
To: email@hidden
Subject: can I remove header files from built-in framework?

Now that my app is going final, I'd like to reduce its size. 300 KB of that size is headers for a built-in framework (i.e. inside the "A" directory there's a Headers folder, a Resources folder, and the framework's executable). My framework is private and built-in, and it seems to me that once the code is built and everything is linked up, the headers must surely perform no function at all. Am I right? Is it safe to remove them? If so, what's the best way to automate this? I bet someone has written a script for doing this...? Thx - m.

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.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.
_______________________________________________
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.


---
In English, every word can be verbed.
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: can I remove header files from built-in framework? (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Placing an NSRect into an NSImage
  • Next by Date: Re: NSTableView or NSArray Troubles...
  • Previous by thread: Re: can I remove header files from built-in framework?
  • Next by thread: Re: can I remove header files from built-in framework?
  • Index(es):
    • Date
    • Thread