Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - www

Pages: [1]
1
General / .app not running on mac
« on: January 02, 2017, 11:54:41 pm »
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?

Pages: [1]