This line of code is the problem I got today (macOS app):
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
After I update Xcode, the system is alway got me empty devices array.
The thing is, the old projects(created before the update) work as expected.
What's going on here...?
Does anyone has the same problem?
------------UPDATE------------
I found this not just happened to my mac, also on the company's.
And it does affect my work.