Mapped file is not a platform library

Mapped file is not a platform library

MacOS / Library not loaded: mapped file has no Team ID and is not a platform binary

Linking a library on macOS fails like this?

Then we have to codesign the library again with this command:

cbilz@suedlichts-imac lib % codesign -s "Apple Development: Christoph Bilz (******)" -f /Users/cbilz/brew/brew/Cellar/openssl@1.1/1.1.1s/lib/libssl.1.1.dylib
/Users/cbilz/brew/brew/Cellar/openssl@1.1/1.1.1s/lib/libssl.1.1.dylib: replacing existing signature