Re: Plugin is 10X too big!
Re: Plugin is 10X too big!
- Subject: Re: Plugin is 10X too big!
- From: Marc Poirier <email@hidden>
- Date: Fri, 27 Aug 2004 08:58:59 -0400
On Aug 26, 2004, at 2:29 PM, Chris Griffin wrote:
I just ported some code from Codewarrior to XCode as a Plugin bundle.
The executable went from about 500K to 5M!! There was an earlier post
about this with no resolution. I did not import the CW project. I
believe I started with a CFPlugin project. This is XCode 1.5. I have
turned off Zero-Link, symbols and turn dead code stripping on.
There are actually a lot of build settings that you need to enable in
your Deployment style in order to get a real deployment build. I'm not
sure why the project templates don't set them up properly for you, but
anyway, here they are:
enable "Deployment Postprocessing"
(this will give you a dramatic executable size reduction)
add the build setting SEPARATE_STRIP and give is the value YES
(otherwise your executable will be ruined rdar://3444278 )
change the "Install Permissions" settings to something sane (unlike the
defaults, which will not allow you to build again without root
privileges) like "u+w,a+rX"
Also, note that if you actually want your "Installation Path" setting
to be honored, then you also need to do these:
enable "Deployment Location"
set "Installation Build Products Location" to "/"
Marc
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.