Mac File Location

I am writing a small game for school and it is more or less done. Now i tired to port it to Mac and it works in xCode. But when i try to run it as a product it is not a .app file( it’s a command line tool i think, i don’t know how to change that) and it does not find any of my files (maps, pictures) no matter where i place them. They were found in xCode but not in the product directory. Does anyone have an idea how to fix this? Google won’t tell me a solution.

Best Wishes,
YellowTech.

You need to manually make a bundle (or get some tool to make it) and then place your resources inside the bundle. Inspect some existing bundles on your computer to learn more or read about them here: https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html