title: AVAudioPlayer not playing sound from temp file path
body: <p>I have saved a recording to my <strong>Temp directory</strong> and can verify this using <strong>iExplorer</strong></p>
  
  <p>The file path structure is <code>TempFolder/UserID/SoundName001.wav</code>
  The bit I save to the database is <code>UserID/SoundName001.wav</code></p>
  
  <p>Here is the code I use to play the file</p>
  
  <p><code>@property (nonatomic, strong) AVAudioPlayer *player;</code></p>
  
  <pre><code>-(void) playSound: (NSIndexPath*)recordingIndex {
      NSArray *recording = [recordingArray objectAtIndex:recordingIndex.item-1];
      NSString *filePath = [NSString stringWithFormat:@"%@%@",NSTemporaryDirectory(),[recording objectAtIndex:2]];
      NSURL *recorderURL = [[NSURL alloc] initFileURLWithPath: filePath];
      self.player = [[AVAudioPlayer alloc] initWithContentsOfURL:recorderURL error:nil];
      [self.player prepareToPlay];
      [self.player setMeteringEnabled:YES];
      [self.player setDelegate:self];
      [self.player play];
  }
  </code></pre>
  
  <p>I set a breakpoint and <code>recorderURL</code> returns the following <code>file:///private/var/mobile/Containers/Data/Application/0883D0DC-B1FD-4D06-A7BB-EBD9EEF5D607/tmp/1/Dog001.wav</code></p>
  
  <p><a href="https://i.stack.imgur.com/97Xve.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/97Xve.png" alt="Photo evidence"></a></p>
  
  <p>When I call this method, nothing happens, no crash, no sound...
  Am I missing something obvious here?</p>