views:

241

answers:

2

Hello ,

     I am developing an iphone application using "AVAudioPlayer" for playing a ".wav" file . For this i am adding header file "#import <AVFoundation/AVAudioPlayer.h>" . But while compiling i am getting error like :
      ".objc_class_name_AVAudioPlayer", referenced from:

literal-pointer@__OBJC@__cls_refs@AVAudioPlayer in WebviewController.o ld: symbol(s) not found collect2: ld returned 1 exit status" .

So can you please tell me the solution for this type of error....

Thanks & Regards, KamalBhr

"

+1  A: 

You need to add the AVFoundation.framework framework to your project.

hello, Thank you for your Quick reply and also thanks for ur suggestion now my application is compiling .Thnaks ,KamalBhr
KamalBhr
KamalBhr-- Please select the checkmark beside this answer so that everyone will know the question has been answered and so Nicolas can get credit.
TechZen
A: 

Wait, I am getting the same exact error but I have the AVFoundation framework in my project. Nothing is working!?!?!?!?

matt