Ok, this question needs more explanation.
I've written a game in c++ using SFML. So when I finished the game (I'm using xcode), I went to Product > Archive and saved my game's executable in a folder. I put all the resources in the same folder as the executable. When I double click the executable, I get an error like this:
Last login: Wed Dec 17 19:38:15 on ttys001
My-Macbook:~ My_Name$ /Users/My_Name/Dropbox/SFML/DodgeBall/Builds/DodgeBall\ Build\ 12-17/DodgeBall ; exit;
Failed to load font "sansation.ttf" (failed to create the font face)
Game Crashed: class 'ResourceLoader' was unable to load file
logout
This part:
Game Crashed: class 'ResourceLoader' was unable to load file
Is output from my game itself. The rest I don't understand.
But when I go into terminal and navigate to my game's executable, I can do this:
./DodgeBall
And my game runs fine. How come this is? Is there a way to make it so I can double-click the executable and it will run?
I'm using a 2010-ish macbook, xcode 6, OSX Mavericks, and SFML 2.1.