What hasChanging the working directory worked for me in the pastrecently:
Go to Product -> Scheme -> Edit Scheme.
Then click Run on the left hand panel and then finally enter the path of the files under Working Directory.
All of your paths canare then be relative to the path you enterentered.