As I'm sure many mac users have discovered, the first tutorial doesn't work out of the box. I kept getting the "library not found for -lsfml-system-d" error. I managed to fix that, but it turns out there are a couple of other borked things in the SFML mac template.
To get the mac tutorial to work, do the following:
- Click on your project in the top left. In the secondary pane to the right, make sure "Targets" is selected. In the third pane to the right, click on "Build Settings"
- Next, scroll down until you get to "Search Paths". In the blank area to the right of "Library Search Paths" type: usr/local/lib/
- Now, continue scrolling down until you hit "Apple LLVM Compiler 4.1 - Language". See where it says "C++ Standard Library"? Change the option to "Compiler Default."
- Finally, scroll to the very bottom under "User-Defined". Find the section where it says SFML_LINK_DYLIBS_SUFFIX. There's a "-d" next to "Debug". Delete that so there's nothing there.
Now you can hit the Run button and it will work.
Hope this helps some people.
Please note, this was done using Xcode 4.5.2 and OS 10.7.5 and the "bare hands" installation of SFML using the dylibs, (no frameworks) so you may have to do something different if you did an install with just the frameworks. Also, I'm a total noob, but after finally getting this working, I thought I'd share what I managed to figure out from multiple posts.