Re: Script to clean up NIBs for deployment
Re: Script to clean up NIBs for deployment
- Subject: Re: Script to clean up NIBs for deployment
- From: Rainer Brockerhoff <email@hidden>
- Date: Sun, 11 Nov 2007 14:55:47 -0200
At 08:00 -0800 11/11/2007, email@hidden wrote:
>From: Ricky Sharp <email@hidden>
>Date: Sat, 10 Nov 2007 20:58:12 -0600
>Message-ID: <email@hidden>
>
>The new NIB 3.x format will grow your nibs quite a bit. In one of my apps, an extra 4.4 MB was added. I use the following script in a Run Script phase (using a shell of /bin/sh):
>
>find "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Contents/Resources" \( -name designable.nib \) -type f -delete
>find "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.app/Contents/Resources" \( -name data.dependency \) -type f -delete
Alternatively, using the .xib format and making sure the "Flatten compiled XIB files" in the "interface builder compiler" build options avoids creating those files in the first place.
I believe this is even the default setting...
A side effect will be making it harder for ad-hoc localizers, as the resulting .nib files won't be readable by IB; but you can of course set up a localization package with the originals (or send it on request).
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden