title: Custom iOS UILocalNotification sound does not play (possibly related to Xcode update)
body: <p>I'm trying to get a custom sound working on a <code>UILocalNotification</code>, and I'm just getting no sound at all.  If I use <code>UILocalNotificationDefaultSoundName</code>, I indeed get the default sound, but when the custom sound is specified, there is no sound, just the message.  The sound is less than 30 seconds and it's in the right format, as far as I can tell.  Here's a screenshot of the file info:
  <img src="https://i.stack.imgur.com/Eq3xX.png" alt=""></p>
  
  <p>I've inspected the .app directory in XCode's <em>DerivedData</em> directory, and the <em>alarm.caf</em> file is at the root of the app, which I believe means it's in the bundle (right?).</p>
  
  <p>I'm pretty sure this was working a while ago, and I've since upgraded Xcode. Maybe that is a hint?</p>
  
  <p>I've also tried deleting/reinstalling/rebooting as mentioned in other answers.  As you can see, I'm calling <code>cancelAllLocalNotifications</code> first.</p>
  
  <p>Does anyone have any idea what could be wrong?</p>
  
  <pre><code>[[UIApplication sharedApplication] cancelAllLocalNotifications];
  NSLog(@"installing alarm");
  [arguments pop]; // name
  [arguments pop]; // title
  alarm.alertBody = [arguments pop];
  alarm.fireDate = [[NSDate date] addTimeInterval:[[arguments pop] intValue]/1000];
  //alarm.soundName = UILocalNotificationDefaultSoundName;
  alarm.soundName = @"alarm.caf";
  
  [[UIApplication sharedApplication] scheduleLocalNotification:alarm];
  </code></pre>