I have some data files in the resources/ folder for my Rubymotion project. How do I access them in the code? Accessing them without a path, is not working.
e.g.
I have a file in resources/ called schema.json
Here’s the code I am using:
NSData.dataWithContentsOfFile("schema.json") <--- returns nil
Figured it out.