I\'m learning Swift and have been frustrated trying to figure out how I\'m unable to load files. It turns out that the code works in Xcode but does not work in a playground.
Might be a permission problem. Probably in your XCode project you have a set of privileges which are not available in playground.