• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to use a framework in a non-standard location?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to use a framework in a non-standard location?
      • From: Andy Wiese <email@hidden>
References: 
 >How to use a framework in a non-standard location? (From: Andy Wiese <email@hidden>)

  • Prev by Date: How to use a framework in a non-standard location?
  • Next by Date: Re: Including vImage
  • Previous by thread: How to use a framework in a non-standard location?
  • Next by thread: Re: How to use a framework in a non-standard location?
  • Index(es):
    • Date
    • Thread