On Sat, Nov 7, 2009 at 7:38 AM, Samuel Ford <causticma...@me.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to