Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plugin is 10X too big!



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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.