I'm trying to add react-native-vision-camera to my React Native app, and it gave me the following error:
Specs satisfying the
VisionCamera (from ../node_modules/react-native-vision-camera
) dependency were found, but they required a higher minimum deployment target.
In my podfile I have platform :ios, '10.0'
. Is there a way to find the minimum deployment target that this library requires? And is there ever a disadvantage to increasing the minimum deployment target?
CodePudding user response:
Open your iOS project in Xcode and then follow these steps:
CodePudding user response:
If you look at the Podfile in the example project of the repo, the minimum deployment target is iOS 11.
https://github.com/mrousavy/react-native-vision-camera/blob/main/example/ios/Podfile
The disadvantage of increasing the minimum target is that your app won't work on devices that can't upgrade to your minimum OS version. Supporting two OS versions behind the latest major release is pretty common.
You can check Apple's compatibility chart here: https://support.apple.com/en-us/HT209574
Anything older than those devices won't work.