You can set this variable in your app/framework itself by setting an `rpath`. For example, the following code will set the `rpath` of the program:

    //:configuration = Debug
    LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks
    
    //:configuration = Release
    LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks
    
    //:completeSettings = some
    LD_RUNPATH_SEARCH_PATHS

And yes, the `@loader_path` can be replaced by `@executable_path` if you're only targeting an application.