i tried to build with react native vision camera. but there. are build error at line codes in xcode
if #available(iOS 17.0, *),
let userPreferred = AVCaptureDevice.userPreferredCamera { this is -> #'userPreferredCamera' is unavailable in iOS
preferredDevice = userPreferred.toDictionary()
} else {
preferredDevice = devices.first
}
How were you trying to build the app?
i tried to build with react native vision camera. but there. are build error at line codes in xcode
if #available(iOS 17.0, *), let userPreferred = AVCaptureDevice.userPreferredCamera { this is -> #'userPreferredCamera' is unavailable in iOS preferredDevice = userPreferred.toDictionary() } else { preferredDevice = devices.first }
Full build logs
Project dependencies
VisionCamera Version
3.4.1
Target platforms
iOS
Operating system
MacOS
Can you build the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information