Re: building & distributing frameworks
Re: building & distributing frameworks
- Subject: Re: building & distributing frameworks
- From: Olivier <email@hidden>
- Date: Wed, 25 Sep 2002 10:19:36 -0500
See this web page:
http://cocoadevcentral.com/tutorials/showpage.php?show=00000037.php
Olivier
On Wednesday, September 25, 2002, at 09:27 AM, Hannes Friederich wrote:
I have created some cocoa code which I'd like to reuse in various other
application projects, so I decided to put it into a framework. But to
ease
the shipping of the finished application bundles, I want to include the
framework inside the application bundle instead of having it installed
somewhere in /Library/Frameworks etc.
After some hours trying to reach this in ProjectBuilder, I gave up.
There
were the following problems:
Linking against the framework failed in ProjectBuilder unless I
installed
the framework in /Library/Frameworks. After building, the application
run
just fine, but I was not sure, from which location the framework was
running. So I included the following code in the application:
NSLog([[NSBundle bundleForClass:[theDesiredClass class]] bundlePath]);
and it showed me the path where I build the framework originally. Of
course,
after removing the framework from this location, the application
refused to
launch (dyld couldn't link in the symbols)
Question: How can I build a framework which i can put inside
"AppName.app/Contents/Frameworks" so that the Application building
succeeds
and so that dyld does find the framework? I tried some framework search
path- settings, but either the header files weren't found, the linking
process failed or the Application lauch failed.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.