If you want to use dylibs instead of frameworks, then check out the Xcode dylib tutorial.
Next select your compiler.
Just keep the “Use default native compilers” option checked and ignore the other three options.
Watch out for which SFML version is found. If you are planning on using the SFML frameworks in your project, then don't let CMake find the SFML dylibs because your program will simply not work.
You can now change some of the options if you want. In order to build the framework, keep TGUI_SHARED_LIBS checked and check TGUI_BUILD_FRAMEWORK. After setting the options like you want them you need to press Configure again. Now you should have reached the message “Configuring done” at the bottom. All you have to do now is press Generate.
You are not done yet.
CMake made a Makefile in the build directory that will build the library.
Open the terminal, go to the directory were the Makefile is and type “make -j4”.
When this is done, type “sudo make install” and enter your password.
In the previous step, the framework was installed to /Library/Frameworks by default. All you need to do to use it is dragging the TGUI framework into your project.
A screen like below will appear where you normally don't need to change anything, just hit "Finish". The "Copy items if needed" can remain unchecked, but it doesn't matter if it is checked.
You should now be able to use TGUI.
Tip: The sfml example comes with a resourcePath() function which you must set before the paths to load resources. You can use tgui::setResourcePath(resourcePath()) at the beginning of your program so that everything tgui loads starts with that folder.