Re: Custom embedded framework not working
Re: Custom embedded framework not working
- Subject: Re: Custom embedded framework not working
- From: Gouri Jonnalagadda <email@hidden>
- Date: Sun, 29 Jul 2007 15:34:52 -0700
If you are getting a dyld error then, you need to set the environment
variable. {Add DYLD_FALLBACK_FRAMEWORK_PATH and set it to the path of
the custom framework in the executable's "Arguments".}
Gouri
On Jul 28, 2007, at 11:09 AM, Ken Tozier wrote:
Hi
I'm taking my first foray into creating custom frameworks and while
they work fine if I manually place them in "/Library/frameworks/"
I'm having no luck embedding them in an application.
I read the relevant documentation here http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html#/
/apple_ref/doc/uid/20002258-106880, Googled, read any links that
looked promising, watched this video at http://rentzsch.com/share/embeddingFrameworks.mov
(although that seems to be out of date as it specified using -
seg1addr in the other linker flags ) but I'm clearly doing something
wrong.
First question I have regards the documentation stating that you
have to set the build targets of both the app and the framework to
the same directory. Is that correct? If so, doesn't that mean that
anyone who wants to use a custom framework has to have the complete
source and customize the build settings of all custom framework
projects for each application they want to use it in? That just
seems suspect as no one other than the original framework developer
could ever embed a non-apple framework.
Second question: When I followed the Apple instructions at the above
link, I got a link error that no amount of "build path" twiddling
was able to fix.
I ended up using a combination of the rentzsch.com method for adding
the framework to the (control>add>existing frameworks) along with
the adding a "copy files" build phase. All the public headers are
flagged correctly.
When I run the app I get the error "/Library/Frameworks/
KViews.framework/Versions/A/KViews." I can't understand why this is
happening as the compiled app contains the KViews.framework in it's
embedded frameworks folder.
Any insights greatly appreciated
Ken
_______________________________________________
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
_______________________________________________
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