building & distributing frameworks
building & distributing frameworks
- Subject: building & distributing frameworks
- From: Hannes Friederich <email@hidden>
- Date: Wed, 25 Sep 2002 16:27:07 +0200
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.