The macOS build of Firebird 5.0.4 is missing the LC_RPATH command that was in previous builds, meaning that libfbclient.dylib can't find libtommath.dylib.
5.0.3 has this rpath set but 5.0.4 is missing it:
Load command 18
cmd LC_RPATH
cmdsize 32
path @loader_path/.. (offset 12)
The link to libtommath depends on on this rpath:
Load command 18
cmd LC_LOAD_DYLIB
cmdsize 56
name @rpath/lib/libtommath.dylib (offset 24)
time stamp 2 Thu Jan 1 10:00:02 1970
current version 1.41.0
The macOS build of Firebird 5.0.4 is missing the LC_RPATH command that was in previous builds, meaning that libfbclient.dylib can't find libtommath.dylib.
5.0.3 has this rpath set but 5.0.4 is missing it:
The link to libtommath depends on on this rpath: