Convert NSData from local NSURL
问题 I have a sound player which uses AVAudioPlayer class. I download some items in another view and store the filepath to it as NSURL, then pass the NSURL to the Player viewcontroller. But i get an error while trying to pass the object. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString path]: unrecognized selector sent to instance 0x1700c86c0' And here is the code: NSData *data = [NSData dataWithContentsOfFile:[podcastSource path]]; NSError *error