I have an audio player that plays local files.
audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:&error]
It works fine. However if I click xcode run button to rebuild the app, the player is not working. It gives me Error
Error Domain=NSOSStatusErrorDomain Code=2003334207 "The operation couldn't be completed. (NSOSStatus error 2003334207.)"
The url is absolutely the same. I checked the file. It is where it says it is and it is not corrupt or anything.
Edit:
[[NSFileManager defaultManager] fileExistsAtPath:url.path]
returns false but if the file is there what this means is that I don't have access to it?
[[NSFileManager defaultManager] fileExistsAtPath:url.path]
? Maybe the url doesn't point to the right location. – Teo