the code:
if (!mTexture.loadFromFile("Media/Textures/Eagle.png"))
mFont.loadFromFile("Media/Sansation.ttf");
folder structure:
*project name* contains [ExternalLibraries], [Media], [*project name], [.xcodeproj file]
media contains Sansation.ttf and [Textures]
Textures folder contains Eagle.png
I tried the whole path, which is:
if (!mTexture.loadFromFile("/Users/Prummi/Desktop/dev/C++/SFML/SFML Game Development Book/Media/Textures"))
but this didn't work. It gave me the same error (unable to open file)