Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)
Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)
- Subject: Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)
- From: Alex Zavatone <email@hidden>
- Date: Wed, 24 Jan 2018 15:36:19 -0600
Dragan, if you are able to make a build where the .nib is not compressed, you
could diff them or simply open them in an editor and see the difference between
both?
Back when I worked at Macromedia on this prehistoric product known as Director
and this other thing known as Shockwave, whenever we ran into a problem like
this, to get to the root of it we’d first try to replicate the problem in the
simplest manner possible.
Like simplifying an equation by removing unnecessary variables or unneeded
complexity.
But you clearly also have cases that do exhibit the problem. It’s a waste to
only test the simple case if you can also test the more complex one at the same
time and also include another set of simple cases that might spell out the
nature of what is happening.
Running with those concepts,
- put one of your nibs in a new project
- add a new nib and add one field to it
- create another nib and add one image to it.
- add a high resolution image to an asset and assign it to that image.
- add an icon to your app icon in the assets.xcassets file.
Make sure either your settings are set to not compress the nibs or build a
debug build, whichever doesn’t compile the nibs down.
Build in Xcode 8 targeting 10.12 and build in Xcode 9 targeting 10.13.
Open up each of the nibs in an XML editor and compare the differences, or
simply compare file sizes before opening. I’d actually think it would be more
helpful to see the XML inside the nibs, but that’s just me .
My suspicion is that you will see no significant changes in the nib that has
just the field in it.
We expect that there will be differences in the nib that you included from your
app.
The other files will be interesting andI suspect should illustrate the issue
clearly.
Hope this helps.
Alex Zavatone
> On Jan 24, 2018, at 3:23 PM, Dragan Milić <email@hidden> wrote:
>
> On Jan 24, 2018, at 20.56, Jeremy Hughes wrote:
>
>> Vince has explained why it does matter.
>>
>> If you change the deployment target to 10.13 (which you probably don’t want
>> to do) the application icons should no longer be duplicated. They’re
>> currently being duplicated for backwards compatibility with old systems.
>
> I'm not talking about icons and assets, I'm talking about compiled NIBs,
> please read my initial message again. Changing to 10.13 as the deployment
> target changes nothing in my case, compiled NIBs are still considerably
> bigger than those compiled with Xcode 8 (and its embedded ibtool and 10.12
> SDK).
>
> -- Dragan
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden