iOS SDK4.0 AVFoundation !
-
28-09-2019 - |
Question
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!
Solution
Do you built it for simulator? If so, try to build for device, these classes will not compile for simulator.
OTHER TIPS
add the import
#import <AVFoundation/AVFoundation.h>
in the header file ! and youre ready to go within the Simulator
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow