Runtime Search Path for plugins?


#1

I am trying to link the Paddle framework to a plugin on Mac. In a standalone app I have LD_RUNPATH_SEARCH_PATHS set to @executable_path/../Frameworks. I’m trying to work out what the equivalent would be for a plugin. The actual path to the bundled framework for a VST is:

<path-to>/MyPlugin.vst/Contents/Frameworks/Paddle.framework/Versions/A/Paddle

From reading https://wincent.com/wiki/@executable_path,@load_path_and@rpath it should be @loader_path/../Frameworks but this is not working for me. Any clues?


#2

Looks like for some reason it needs to be exported as an archive from Xcode; I was testing with a release build via “Build for Profiling”.

I can confirm that @loader_path/../Frameworks does in fact work!