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
Are you attempting to do this inside of an XCTest and on the verge of smashing your laptop? This is the thread for you: Why can't code inside unit tests find bundle resources?