Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS SDK4.0 AVFoundation !

I've added AVFoundation.framework I've written "#import " at the top of the file.

I've used the class AVCaptureSession AVCaptureDevice AVCaptureDeviceInput... in my code.

But when I build it,Xcode told me the errors that "AVCaptureSession undeclared" "AVCaptureDevice undeclared" ...

What's wrong with it? What should I do for it?

Thank you very much!

like image 762
Rafer Avatar asked Nov 21 '25 03:11

Rafer


1 Answers

Do you built it for simulator? If so, try to build for device, these classes will not compile for simulator.

like image 91
Steve Avatar answered Nov 24 '25 08:11

Steve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!