Re: How to use a framework in a non-standard location?
Re: How to use a framework in a non-standard location?
- Subject: Re: How to use a framework in a non-standard location?
- From: j o a r <email@hidden>
- Date: Tue, 23 Nov 2004 09:24:03 +0100
Did you follow the instructions for creating an embedded framework?
<http://developer.apple.com/documentation/MacOSX/Conceptual/
BPFrameworks/Tasks/CreatingFrameworks.html#//apple_ref/doc/uid/
20002258/BAJJBIEF>
j o a r
On 2004-11-23, at 09.08, Andy Wiese wrote:
My question is how to build an external test application to use a
framework without having to install the framework in a default
location?
I have built a framework. It currently just builds into its project
build directory.
I have another target that builds a test app into the same build
directory. It finds the framework and runs just fine.
I have another project that builds a similar test application. I
dropped the framework into the Frameworks and Libraries Build Phase,
and I have a Framework Search path in the target build settings to the
framework. (I think the path was put there automatically? I don't
remember entering this setting). It builds and links, but at launch it
gives me this error:
dyld:
/Users/andy/Projects/xcode_sandbox/m_/m_demo/build/m_demo.app/
Contents/MacOS/m_demo can't open library:
/Users/andy/Library/Frameworks/m_core.framework/Versions/A/m_core (No
such file or directory, errno = 2)
Based on recommendation in the (probably obsolete) Introduction to Mac
OS X Frameworks documentation, I put a Copy Files build phase in and
copied the framework to the Frameworks directory of the application
bundle. I confirmed that it is copied ok.
I clean, rebuild and launch, and get the same error exactly.
I copied the framework into the ~/Library/Frameworks folder, where
dyld seems to be looking for it, and everything runs just fine.
During development, it seems too inconvenient to have to copy the
framework to some default shared location. Also for development demos,
it would be great to package the framework inside the demo app. Can
anyone help me with the secret handshake to make this work?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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