• 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: Plug-in & Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plug-in & Framework


  • Subject: Re: Plug-in & Framework
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Tue, 4 Nov 2003 22:57:40 +0000

On Tuesday, November 4, 2003, at 04:04 pm, Ambroise Confetti wrote:

Hi all,

I have an application that links against a custom framework. I have set
up a Copy Files build phase to put a copy of the framework in the
application's Frameworks directory.

If I launch my app from Xcode, everything's fine.

However, in Deployment build style, when I open the application, I get
the following message in the Console:

dyld: /Users/ambroise/Developer/Built
Products/Cellulo.app/Contents/MacOS/Cellulo can't open library:
/Library/Frameworks/CelluloFramework.framework/Versions/A/
CelluloFramework (No such file or directory, errno = 2)

(The application is "Cellulo" and the framework is "CelluloFramework".)

There must be something wrong in my build settings, but I can't find
what. Isn't the dynamic linker supposed to look in the application's
Framework directory by itself?

Any idea?

You need to set the framework's install path to

@executable_path/../Frameworks/

see

http://cocoadevcentral.com/articles/000042.php#000042

(OK, the article talks about Project Builder, but you need to do the same thing with Xcode, it's just that the settings have moved).

There is also a more comprehensive explanation of the problem (which is linked to by a comment at the bottom of that article), at

http://qin.laya.com/tech_coding_help/dylib_linking.html

Kind regards,

Alastair.
_______________________________________________
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.

References: 
 >Plug-in & Framework (From: Ambroise Confetti <email@hidden>)

  • Prev by Date: Re: NSController revisited
  • Next by Date: Re: unsigned 16 digit integer data type?
  • Previous by thread: Plug-in & Framework
  • Next by thread: Super Newbie
  • Index(es):
    • Date
    • Thread