@Rpath might not be your friend


when you run

otool -l <path to your built app>

what do you see for entries like LC_LOAD_DYLIB and LC_RPATH ?
@rpath can be tricky

you may want to use otool to rewrite the @rpath one to @executable_path

see Loading Dynamic Libraries on Mac
it has decent examples of doing this

Turns out if I just don’t code sign the tool then it seems to work. Even on other peoples Macs.

Very odd.

RPath might still be problematic though
you could rewrite it to be @executable_path

signing shouldnt affect this as far as I know

1 Like