How to print a list of symbols exported from a dynamic library
man 1 nm
https://web.archive.org/web/20160316222941/https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/nm.1.html
For example:
nm -gU /usr/local/Cellar/cairo/1.12.16/lib/cairo/libcairo-trace.0.dylib
Use otool:
otool -TV your.dylib
OR
nm -g your.dylib
Use nm -a your.dylib
It will print all the symbols including globals