• 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: Embedded Frameworks in Plugin & Action Bundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedded Frameworks in Plugin & Action Bundles


  • Subject: Re: Embedded Frameworks in Plugin & Action Bundles
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 7 Nov 2009 18:16:20 -0800

On Sat, Nov 7, 2009 at 7:38 AM, Samuel Ford <email@hidden> wrote:
> I understand the nature of the problem -- the library path is wrong, it
> should be relative to the loader path not the executable (which, of course,
> is Automator.app, not my action).

If you are also using RegexKit in your app, and have bundled your
Automator action in the app's Contents/Library/Automator folder, you
should use @rpath instead.  Then you only have to ship one copy of
RegexKit in your app bundle's top-level /Frameworks directory.  It
will, however, make your app 10.5-only.  More info:
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/RunpathDependentLibraries.html

> The thing is, I can't figure out where the heck in Xcode I effect this
> change.

The above document claims you can use the -rpath gcc option.  You can
also use install_name_tool to perform the change after the fact.  But
I find it easiest to just use the "Dynamic Library Install Name" build
setting (aka LD_DYLIB_INSTALL_NAME) on the target.  Make sure you've
got the latest version of Xcode.  :)

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Embedded Frameworks in Plugin & Action Bundles (From: Samuel Ford <email@hidden>)

  • Prev by Date: Re: NSString of selected text in NSTextView
  • Next by Date: Re: AHGoToPage function
  • Previous by thread: Embedded Frameworks in Plugin & Action Bundles
  • Next by thread: NSString of selected text in NSTextView
  • Index(es):
    • Date
    • Thread