I have a file paylines.txt added inside the folder named TextFiles which resides inside the Resources folder of my iOS project in Xcod
paylines.txt
TextFiles
Resources
When I drag files in, the "Add to targets" box seems to be un-ticked by default. If I leave it un-ticked then I have the problem described. Fix it by deleting the files then dragging them back in but making sure to tick "Add to targets".