It should be enough to place the Framework in any path searched by OS X.
You could place it in ~/Library/Frameworks for personal use of 
/Library/Frameworks if other users need access to it too.

Another option is to change the build options and make the Framework compile so 
that it can be placed inside your App's Bundle. This increases your app size 
and potentially wastes some memory if you have many apps using the Framework 
but is way easier to handle & distribute. This is what I'm doing for my LCMS 
tests.

To make it work that way you have to change the XCode setting:
LD_DYLIB_INSTALL_NAME = @executable_path/../Frameworks/$(EXECUTABLE_PATH)

then add the framework as usual to the xcode app project of your app and link.
You also have to add a second Copy Files Phase to your target and choose 
Frameworks from the destination drop down. 
That's it.

I recommend reading the Framework Programming Guide from Apple if you have not 
already. Frameworks are pretty useful when used right.

HTH
Mark



On 08.06.2010, at 18:57, Stephen Chu wrote:

> On 6/8/10 12:18 PM, John Green wrote:
>> I'm porting my application from LCMS 1 to LCMS 2. With LCMS 1 I just
>> included the sources in my application but now I see that the xcode
>> project builds a framework. This is good but I'm having problems using
>> the framework.
>> 
>> You see, I don't want to install it in /Library/Frameworks. My app does
>> not use an installer and I'd like to keep it that way.
>> 
>> So I put the framework in my Resources/Frameworks folder but it still
>> isn't seen. I started to write the dlopen code to open it but then I got
>> think I would need to change all my calls and I'd like to keep the LCMS
>> calls intact.
>> 
>> I must be doing something wrong but I'm not seeing it. Is there an easy
>> way to keep the LCMS framework in the Resource/Frameworks folder?
> 
> I think the right location is /Contents/Frameworks/
> 
> -- 
> Stephen Chu
> <mailto:step...@ju-ju.com>
> <http://www.ju-ju.com>
> 
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Lcms-user mailing list
> Lcms-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lcms-user


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to