I've been working through the SFML game development book and I've run into a problem- I have a program that runs fine in Xcode, but the .app file doesn't run. In the book, it has all the resources sorted into different folders, and they are referenced like Media/Textures/Buttons.png
which breaks in Xcode because when it is run, it copies each individual file into the Resources folder in the .app file, and the prefixes mess it up. So, I changed the working directory from .../Xcode/DerivedData/.../Build/Products/Debug/Resources to the same folder that has my .xcodeproj file (/Users/Documents/projectname/projectname) and now it runs fine when I hit run in Xcode- but the .app file immediately closes.
Am I supposed to fix this by changing the working directory back to .../Build/Products/Debug/Resources and deleting all the prefixes from the filenames in the code?