luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
75 stars 16 forks source link

[BUG 🐛] CocoaPods required a higher minimum deployment target #64

Closed manivelgopi closed 1 month ago

manivelgopi commented 1 month ago

React-native cli

Screenshot 2024-05-22 at 22 09 16

[!] CocoaPods could not find compatible versions for pod "VisionCameraFaceDetector": In Podfile: VisionCameraFaceDetector (from ../node_modules/react-native-vision-camera-face-detector)

Specs satisfying the VisionCameraFaceDetector (from../node_modules/react-native-vision-camera-face-detector) dependency were found, but they required a higher minimum deployment target.

[!] [Codegen] warn: using experimental new codegen integration error Command failed with exit code 1.

Bug: Facing Target version compatibility issue while installing pod. -> cd ios && bundle install && bundle exec pod install

I have tryed: I have tryed replacing this s.platforms = { :ios => "14" } with s.platforms = { :ios => "13.8" } in VisionCameraFaceDetector.podspec But still yarn start getting failed due to incompatible pod package issues..

my package.json file: React-native cli { "dependencies": { "react-native-vision-camera": "4.0.4", "react-native-vision-camera-face-detector": "1.6.3", "react-native-worklets-core": "1.3.3" } }

luicfrr commented 1 month ago

Specs satisfying the VisionCameraFaceDetector (from ../node_modules/react-native-vision-camera-face-detector) dependency were found, but they required a higher minimum deployment target.

That's the answer. Check your app's Podfile what is the minimum deployment target.

I have tryed replacing this s.platforms = { :ios => "14" } with s.platforms = { :ios => "13.8" } in VisionCameraFaceDetector.podspec But still yarn start getting failed due to incompatible pod package issues..

I can't guarantee the package will work on non-tested version so I'm closing the issue.

frodriguez-hu commented 1 week ago

I am having the issue on an empty new React Native Project

[!] CocoaPods could not find compatible versions for pod "VisionCameraFaceDetector":
  In Podfile:
    VisionCameraFaceDetector (from `../node_modules/react-native-vision-camera-face-detector`)

Specs satisfying the `VisionCameraFaceDetector (from `../node_modules/react-native-vision-camera-face-detector`)` dependency were found, but they required a higher minimum deployment target.

My deployment target is 14.0 which is the minimum of the library, that message should not appear. @luicfrr Why can't we reopen this issue?

frodriguez-hu commented 1 week ago

Well... it worked hardcoding this: platform :ios, min_ios_version_supported by platform :ios, "14.0" on the Podfile, but I don't know where the min_ios_version_supported is being get

luicfrr commented 1 week ago

Well... it worked hardcoding this: platform :ios, min_ios_version_supported by platform :ios, "14.0" on the Podfile, but I don't know where the min_ios_version_supported is being get

this is the right way