Jump to content
Sign in to follow this  
Pat Heuvel

App using externally provided dylib no longer working in OSX Monterey

Recommended Posts

Gday all,

 

I have an application that was working prior to Monterey. It uses the PostgreSQL libraries libpq.dylib (and its related dylibs). Since Monterey, it can't successfully load libpq.dylib. I realise this could also mean that it can't succesfully load one of the libraries upon which libpq relies. I have added an FDPhysPgDriverLink instance to my data module, and login, database, server and port vales are correct.

 

After some research, I came across this article:

http://clarkkromenaker.com/post/library-dynamic-loading-mac/

I expect I need to add an LC_RPATH command to my binary, pointing to @executable_path/../Libraries (which is where I put libpq.dylib et al).

 

I've tried doing this in a shell on the Mac, but that fails because it invalidates the code signing. Is there a way to add this stuff (ideally during the build process within the IDE)?

 

Oh, I'm using RAD Studio 11.2 (plus patch) on Windows 10 Pro PC and XCode 14.1 on Macbook Pro M1.

 

Thanks,

Pat

Edited by Pat Heuvel
Added dev. environment.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×