However I am getting AVAudioPlayer undeclared, despite the fact I have added and re-added AVFoundation to the frameworks folder several times and I can see the AVAudioPlayer header inside it. The AVAudioPlayer text is also blue so Xcode obviously recognizes it. Has anyone else had a similar problem and does anyone have a solution?
Yep. Strangely enough since I've restarted my Mac its suddenly started working. Rather wierd.
my problem is, it works on simulator but cell phone... anyone knows how to fix it??? I've tried to reboot Mac several times, cleaned All Targets before rebuild program, deleted the app from cell phone, did change another wav file which works on another app, but it just doesn't work!!
my problem is, it works on simulator but cell phone... anyone knows how to fix it??? I've tried to reboot Mac several times, cleaned All Targets before rebuild program, deleted the app from cell phone, did change another wav file which works on another app, but it just doesn't work!!
Check to make sure your file names/paths for your WAV files are correct. The iPhone's file system is case-sensitive, while the simulator is not. That would be my first guess.
Check to make sure your file names/paths for your WAV files are correct. The iPhone's file system is case-sensitive, while the simulator is not. That would be my first guess.
I have just discovered the root cause, I remarked the microphone code:
Then the WAV file workes!! looks like it's conflict problem between <AudioToolbox/AudioServices.h> and <AVFoundation/AVFoundation.h>
Any method to overcome ??