Re: "Thinning out" fat libraries and frameworks
Re: "Thinning out" fat libraries and frameworks
- Subject: Re: "Thinning out" fat libraries and frameworks
- From: "Paul Sanders" <email@hidden>
- Date: Wed, 16 Dec 2009 19:22:51 -0000
You could try ditto (from the command line) with the -arch
option. That works for me with an app bundle. I use:
ditto -arch ppc build/Release/VinylStudio.app/
/tmp/VinylStudio.app
Delete the target directory first, to remove any junk that might
have got left behind from a previous run.
Paul Sanders.
----- Original Message -----
From: "Rush Manbert" <email@hidden>
To: "XCode Users" <email@hidden>
Sent: Wednesday, December 16, 2009 7:16 PM
Subject: "Thinning out" fat libraries and frameworks
I am using a third party library that creates frameworks and
dylibs. I am building on 10.6.2 and the make for the library
creates fat versions of the dylibs and frameworks that contain
ppc, x86, and x86_64 architectures.
This is great for development, but I eventually need to deploy
an app that use them and, due to size issues, I need to deploy a
thin application. (This may seem ridiculous to you in this day
of large disk drives and fast internet connections, but that's
the way it is.)
So my question is this. Can I create separate ppc, x86, and
x86_64 versions of the third party dylibs and frameworks by
using lipo to extract just the architecture of interest? It
seems obvious that this should work for the dylibs. The
frameworks are a little more mysterious to me. My plan would be
to make a copy of foo.framework, then use lipo to extract just
the architecture of interest from
foo.framework/Versions/Current/foo and leave everything else
unchanged. I would do this for each architecture supported by
the original framework.
Does anyone know whether this works?
- Rush
_______________________________________________
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