react-native-vision-camera-face-detector icon indicating copy to clipboard operation
react-native-vision-camera-face-detector copied to clipboard

Could not build in IOS ( Issue with firebase & messaging )

Open danish5454 opened this issue 9 months ago • 7 comments

Describe the bug: CocoaPods could not find compatible versions for pod "FirebaseCore": In Podfile: FirebaseCore

RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 21.12.0, which depends on
  Firebase/Messaging (= 11.8.0) was resolved to 11.8.0, which depends on
    FirebaseMessaging (~> 11.8.0) was resolved to 11.8.0, which depends on
      FirebaseCore (~> 11.8.0)

RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 21.12.0, which depends on
  Firebase/Messaging (= 11.8.0) was resolved to 11.8.0, which depends on
    FirebaseMessaging (~> 11.8.0) was resolved to 11.8.0, which depends on
      FirebaseInstallations (~> 11.0) was resolved to 11.9.0, which depends on
        FirebaseCore (~> 11.9.0)

CocoaPods could not find compatible versions for pod "GoogleDataTransport": In Podfile: RNFBMessaging (from ../node_modules/@react-native-firebase/messaging) was resolved to 21.12.0, which depends on Firebase/Messaging (= 11.8.0) was resolved to 11.8.0, which depends on FirebaseMessaging (~> 11.8.0) was resolved to 11.8.0, which depends on GoogleDataTransport (~> 10.0)

VisionCameraFaceDetector (from `../node_modules/react-native-vision-camera-face-detector`) was resolved to 1.8.1, which depends on
  GoogleMLKit/FaceDetection was resolved to 0.60.0, which depends on
    GoogleMLKit/MLKitCore (= 0.60.0) was resolved to 0.60.0, which depends on
      MLKitCommon (~> 0.60.0) was resolved to 0.60.0, which depends on
        GoogleDataTransport (~> 3.2)

Minimum reproducible example:

Expected behavior:

I have tryed:

Logs and Screenshots

Device:

  • Device:
  • OS:

package.json file: "dependencies": { "@hookform/resolvers": "^4.1.0", "@lodev09/react-native-true-sheet": "^2.0.4", "@notifee/react-native": "^9.1.8", "@react-native-firebase/app": "^21.12.0", "@react-native-firebase/messaging": "^21.12.0", "@react-navigation/bottom-tabs": "^7.2.0", "@react-navigation/drawer": "^7.1.1", "@react-navigation/native": "^7.0.14", "@react-navigation/native-stack": "^7.2.0", "@tanstack/react-query": "^5.66.3", "apisauce": "^3.1.0", "date-fns": "^4.1.0", "events": "^3.3.0", "i18next": "^24.2.2", "immer": "^10.1.1", "intl-pluralrules": "^2.0.1", "joi": "^17.13.3", "react": "18.3.1", "react-hook-form": "^7.54.2", "react-i18next": "^15.4.0", "react-native": "0.76.3", "react-native-advanced-input-mask": "^1.3.4", "react-native-bootsplash": "^6.3.3", "react-native-collapsible": "^1.6.2", "react-native-compressor": "^1.10.4", "react-native-confirmation-code-field": "^7.4.0", "react-native-country-codes-picker": "^2.3.5", "react-native-gesture-handler": "~2.22.0", "react-native-keyboard-controller": "1.15.2", "react-native-localize": "^3.4.1", "react-native-mmkv": "^3.2.0", "react-native-reanimated": "~3.16.7", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "5.1.0", "react-native-screens": "~4.5.0", "react-native-svg": "15.11.1", "react-native-unistyles": "^2.20.0", "react-native-vision-camera": "^4.6.4", "react-native-vision-camera-face-detector": "^1.8.1", "react-native-worklets-core": "^1.5.0", "zustand": "^5.0.3" },

danish5454 avatar Mar 14 '25 05:03 danish5454

Hello, I think it is a same problem here: https://github.com/luicfrr/react-native-vision-camera-face-detector/issues/111 I'm facing the same problem as You, but I'll try to solve the problem using the answer in the thread above

I'll be great if @luicfrr will update the repo.

ArturBuja avatar Mar 14 '25 11:03 ArturBuja

@luicfrr using firebaseSKVersion: 10.29.0 not a good solution.

danish5454 avatar Apr 08 '25 05:04 danish5454

I'm using 19.2.2 without any issues. Anyway, please test it with new 1.8.3 version and see if issue still happens

luicfrr avatar Apr 30 '25 20:04 luicfrr

any solution for this

ferasabufaresKabi avatar May 05 '25 06:05 ferasabufaresKabi

@luicfrr Issue persists on 1.8.3. Newest version compatible (at least in my case) is 21.3.0.

Related: https://github.com/luicfrr/react-native-vision-camera-face-detector/issues/111; https://github.com/a7medev/react-native-ml-kit/issues/61

teenagecomputerclub avatar May 09 '25 00:05 teenagecomputerclub

On latest versions of everything, and it still happens.

Command `pod install` failed.
└─ Cause: CocoaPods could not find compatible versions for pod "GoogleDataTransport":
  In Podfile:
    RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 22.2.0, which depends on
      Firebase/Messaging (= 11.12.0) was resolved to 11.12.0, which depends on
        FirebaseMessaging (~> 11.12.0) was resolved to 11.12.0, which depends on
          GoogleDataTransport (~> 10.0)

    VisionCameraFaceDetector (from `../node_modules/react-native-vision-camera-face-detector`) was resolved to 1.8.3, which depends on
      GoogleMLKit/FaceDetection was resolved to 0.60.0, which depends on
        GoogleMLKit/MLKitCore (= 0.60.0) was resolved to 0.60.0, which depends on
          MLKitCommon (~> 0.60.0) was resolved to 0.60.0, which depends on
            GoogleDataTransport (~> 3.2)

Versions used:

    "@react-native-firebase/app": "^22.2.0",
    "@react-native-firebase/messaging": "^22.2.0",
    "react-native-vision-camera": "^4.6.4",
    "react-native-vision-camera-face-detector": "^1.8.3",
    "react-native-worklets-core": "^1.5.0",

JerryBels avatar May 16 '25 13:05 JerryBels

any update?? same issue

bumjin1013 avatar May 22 '25 01:05 bumjin1013

any update same

"react-native-vision-camera": "^4.6.4", "react-native-vision-camera-face-detector": "^1.8.3", "react-native-worklets-core": "^1.5.0", "@react-native-firebase/app": "^22.2.0", "@react-native-firebase/messaging": "^21.4.0",

!] CocoaPods could not find compatible versions for pod "GoogleUtilities/Logger": In Podfile: RNFBApp (from ../node_modules/@react-native-firebase/app) was resolved to 22.2.0, which depends on Firebase/CoreOnly (= 11.12.0) was resolved to 11.12.0, which depends on FirebaseCore (~> 11.12.0) was resolved to 11.12.0, which depends on GoogleUtilities/Logger (~> 8.0)

RNMLKitFaceDetection (from `../node_modules/@react-native-ml-kit/face-detection`) was resolved to 1.3.2, which depends on
  GoogleMLKit/FaceDetection (= 6.0.0) was resolved to 6.0.0, which depends on
    GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
      MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0) was resolved to 7.13.0, which depends on
          GoogleUtilities/Logger (= 7.13.0)

RNMLKitFaceDetection (from `../node_modules/@react-native-ml-kit/face-detection`) was resolved to 1.3.2, which depends on
  GoogleMLKit/FaceDetection (= 6.0.0) was resolved to 6.0.0, which depends on
    GoogleMLKit/MLKitCore (= 6.0.0) was resolved to 6.0.0, which depends on
      MLKitCommon (~> 11.0.0) was resolved to 11.0.0, which depends on
        GoogleUtilitiesComponents (~> 1.0) was resolved to 1.1.0, which depends on
          GoogleUtilities/Logger

kartiknadcab avatar May 27 '25 06:05 kartiknadcab

same here

Ctrl-Mota avatar Jun 03 '25 03:06 Ctrl-Mota

Hey everyone, I managed to get it working. After some research, I found the version compatible with MLKitCommon specified by Firebase/Core 11+.

If it doesn’t work, I suggest checking the SPECS corresponding to the version you installed:

https://github.com/CocoaPods/Specs/tree/master/Specs/0/3/5/Firebase
https://github.com/CocoaPods/Specs/tree/master/Specs/c/c/6/MLKitCommon
https://github.com/CocoaPods/Specs/tree/master/Specs/b/e/b/GoogleMLKit

What worked for me, since I’m using these Firebase versions:

  • "@react-native-firebase/analytics": "^22.2.0",
  • "@react-native-firebase/app": "^22.2.0",
  • "@react-native-firebase/crashlytics": "^22.2.0",
  • "@react-native-firebase/messaging": "^22.2.0",

was:

diff --git a/node_modules/react-native-vision-camera-face-detector/VisionCameraFaceDetector.podspec b/node_modules/react-native-vision-camera-face-detector/VisionCameraFaceDetector.podspec
index b434cfa..bc02a4b 100644
--- a/node_modules/react-native-vision-camera-face-detector/VisionCameraFaceDetector.podspec
+++ b/node_modules/react-native-vision-camera-face-detector/VisionCameraFaceDetector.podspec
@@ -10,12 +10,12 @@ Pod::Spec.new do |s|
   s.license      = package["license"]
   s.authors      = package["author"]
 
-  s.platforms    = { :ios => "14" }
+  s.platforms    = { :ios => "15.5" } # 15.5 is the minimum version for GoogleMLKit/FaceDetection 7.0.0
   s.source       = { :git => "https://github.com/luicfrr/react-native-vision-camera-face-detector.git", :tag => "#{s.version}" }
 
   s.source_files = "ios/**/*.{h,m,mm,swift}"
 
   s.dependency "React-Core"
-  s.dependency "GoogleMLKit/FaceDetection"
+  s.dependency "GoogleMLKit/FaceDetection" , "7.0.0"
   s.dependency "VisionCamera"
 end

Ctrl-Mota avatar Jun 04 '25 14:06 Ctrl-Mota

Can you guys please check new 1.8.4 version? In my testings it worked like a charm

luicfrr avatar Jun 09 '25 12:06 luicfrr

Can confirm, works on 1.8.4. Thanks for fix, @luicfrr !

Had to bump deploymentTarget to 15.5 - this could be trivial for readers in this issue, but maybe a note in the Readme would be a great addition.

teenagecomputerclub avatar Jun 10 '25 15:06 teenagecomputerclub

Thx @teenagecomputerclub , I struggle to solve it by myself, just to read your comment later :D

I had to add deploymentTarget 15.5 to my app.json as well. I agree with you, it's worth mentioning somewhere in the docs, for those using Expo.

Lipdk avatar Jul 02 '25 15:07 Lipdk

No worries @Lipdk . After my comment i noticed that @luicfrr even changed the README - soooo yeah :)

teenagecomputerclub avatar Jul 02 '25 20:07 teenagecomputerclub

uhm... Have anyway to not increase deploymentTarget? In my case still needing support old IOS (I'm using firebase 22 too)

longb1997 avatar Jul 31 '25 04:07 longb1997