I am using AVCaptureSession class to capture video. This class only active for Device mode. Other functionality working both simulator and device. How to handle this class for Simulator mode. Whether i have to command this class? please advice.
I am using AVCaptureSession class to capture video. This class only active for Device
Share
You can do this using three methods :
At compilation, by using preprocessor directive :
At runtime (more complex), by checking device :
OR
At project build settings by excluding files depending on SDK (even more complex, but useful for librairies) :