If the exception appears like this :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'
then you would have given wrong path to your file in the code. Either for an example an audio file or image or else given wrong file format extension.
So, have a look whether you've given the correct path in your project directory and the problem will be solved :)