creating embedded framework from externally-provided framework
creating embedded framework from externally-provided framework
- Subject: creating embedded framework from externally-provided framework
- From: Kurt Bigler <email@hidden>
- Date: Thu, 05 Nov 2009 14:27:28 -0800
- Thread-topic: creating embedded framework from externally-provided framework
A framework for libjpeg has been published here:
http://www.clanlib.org/download-binaries-osx-gcc40-universal.html
and from that I want to create an embedded framework in my app, which calls
libjpeg.
[ASIDE: I am trying this because ImageIO appears to ignore the quality
setting (kCGImageDestinationLossyCompressionQuality) making ImageIO useless
for my purposes.]
First I added the above-provided framework to my project and was able to
compile/link against it, but of course it would not run.
So I followed Apple's instructions for creating an embedded framework by
creating a framework target within the same project as the application
target. But I have been having trouble getting the provided framework's
files into the embedded framework target. I was successful in adding the
header files and getting them to appear both in the build folder and also
embedded in my app bundle. (I don't really need the headers there, and
won't leave it that way, but it was a kind of progress.)
However I am not able to get the dylib which was part of the above-published
framework to appear in the build folder. Both the header files and the
dylib have been included in the framework target. However the dylib does
not even appear in the Copy Files build phase for the framework, or in the
contents of the framework under "Products", although the headers appear in
both places and I am able to set their Role. It does appear under the
framework target Link Binary with Libraries phase. So this makes me wonder
whether I need to create another Copy Files build phase within the framework
target, but at this point I have no idea what I'm doing and Apple's
documentation for creating frameworks is not helping me clear the fog.
This is with Xcode 3.1.1 on MacOSX 10.5.8.
Thanks for any help.
-Kurt Bigler
P.S. There are probably other ways I can solve this problem, such as doing
a static link against libjpeg, which might be a better way to go. However,
having attempted this, I would like to know how to do it.
_______________________________________________
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