Interesting, I just set up a 2nd Test project after trying some other things, but I'm pretty sure all those things were related to my first project only (trying to copy frameworks files there etc) but somehow I am getting different run errors with my 2nd test project:
ld: file too small (length=0) file '/usr/local/lib/libsfml-window.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: file too small (length=0) file '/Library/Frameworks/sfml-system.framework/sfml-system' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am documenting this hoping to fix it, but if someone can chime in that would of course be greatly appreciated.
EDIT:
I think I know why I am getting other errors, in the first project I tried to add them manually to the Linked Frameworks And Libraries section of the project in Xcode.
EDIT2:
No I don't think that's it, I added them manually to the second project too but still these above errors and not the ones from the OP
EDIT3:
Redone everything from the Install SFML section on this page manually:
http://www.sfml-dev.org/tutorials/2.0/start-osx.phpI did do the install.sh scripts but they didn't seem to copy everything over as how the manual way suggests it so I did the manual way instead, make sure everything is there.
I start another new project, the project is a SFML App with C++ Compiler and Standard Library set to "C++11 with Clang and libc++ libraries", architecture set to "Universal" and SFML binaries set to "Frameworks".
I try to run/build I get these 2 errors:
ld: file too small (length=0) file '/Library/Frameworks/sfml-window.framework/sfml-window' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
------
ld: file too small (length=0) file '/usr/local/lib/libsfml-window.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
OK I try to link them inside the "Linked Frameworks and Libraries" section in the General settings for the app
I add:
libc++.dylib
The SFML ones in the 'Frameworks' folder that aren't listed in the actual panel so I add them via "Add Other.." from a folder on my desktop from which I copied the files from.
SFML ones have a little chest/lock icon and libc++.dylib has a white shield icon.
I try to run/build the project again but failed with these errors:
ld: file too small (length=0) file '/Library/Frameworks/sfml-system.framework/sfml-system' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
----
ld: file too small (length=0) file '/Library/Frameworks/sfml-system.framework/sfml-system' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note how it is sfml-system now.. not sure what to try next, google doesn't suggest much on these.