AVCaptureDevice iOS 10 class methods does not found

I am facing an error which is: No known method for selector 'defaultDeviceWithDeviceType:mediaType:position:'

Documentation for this method is given at: https://developer.apple.com/reference/avfoundation/avcapturedevice/2361508-defau ltdevicewithdevicetype

My code is:

AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithDeviceType: AVCaptureDeviceTypeBuiltInDuoCamera

mediaType: AVMediaTypeVideo

position: AVCaptureDevicePositionBack];

Here are all the version details:

MacOS: 10.11.5

xCode: 8.0 beta

iOS: 10.0.1

iPhone 6, iOS 10, null

Posted on Sep 22, 2016 12:47 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AVCaptureDevice iOS 10 class methods does not found

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.