"Thinning out" fat libraries and frameworks
"Thinning out" fat libraries and frameworks
- Subject: "Thinning out" fat libraries and frameworks
- From: Rush Manbert <email@hidden>
- Date: Wed, 16 Dec 2009 11:16:10 -0800
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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