Apple specifies in the UILocalNotification
class reference that the audio file must be from the application bundle. However, some smart geek has found his way around this limitation by using:
// this works by going up the bundle dir, then pointing to the Documents dir
localNotif.soundName = @"../Documents/blabla.caf";
This workaround has worked well with iOS 5, however, it broke in iOS 6. In a desperate attempt to try and come up with a new workaround, I made an alias (Symbolic Link) called blabla.caf
that points to ../Documents/blabla.caf
, and placed it into the application bundle. This is were I got stuck.
Now, I am getting a PBXCp error
, and Xcode can't complete application deployment to the device because apparently
error: /Users/stuff/moreStuff/appName/../Documents/blabla.caf: No such file or directory
My Question:
- Can I somehow add a dummy file (0 KB) to the
Documents
directory just to shut Xcode up?
- Can I somehow force Xcode to just override this error and get on with life deploying the app?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…