Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing AVFoundation.framework

AVFoundation.framework is not where the documentation says it should be. I have iPhone SDK 2.2 installed (never had previous sdk versions installed) and I can't find that folder under /System/Library/Frameworks

I did find it under

 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.sdk/System/Library/Frameworks/

folder but if I add it from that location, then the compiler can't find the header files. I tried copying the entire AVFoundation.framework folder to /System/Library/Framework, but it still can't find the header files.

How can I use AVFoundation classes?

Thanks, Alex

like image 860
subjective-c Avatar asked Dec 22 '08 04:12

subjective-c


1 Answers

I've used the AVFoundation classes in my code, and added it the same way you did. You cannot browse the headers for some unknown reason, but putting this in your classes header file compiles just fine:

#import <AVFoundation/AVAudioPlayer.h>

I've submitted my app and had it approved, so I don't think there's anything wrong with this approach. The AVFoundation reference remains red in XCode, but it seems to work fine. Deleting the framework reference causes compile errors, so it definitely needs to be there.

like image 77
rustyshelf Avatar answered Oct 30 '22 13:10

rustyshelf