infinitered / react-native-mlkit

The definitive MLKit wrapper for React Native and Expo
https://docs.infinite.red/react-native-mlkit/
160 stars 13 forks source link

GTMSessionFetcher/Core error in expo 51 #146

Closed saravanakumargn closed 3 months ago

saravanakumargn commented 3 months ago

Command pod install failed. └─ Cause: CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core": In snapshot (Podfile.lock): GTMSessionFetcher/Core (< 4.0, = 3.4.1, >= 2.1, >= 3.3, ~> 3.3)

In Podfile: ExpoAdapterGoogleSignIn (from ../node_modules/@react-native-google-signin/google-signin/expo/ios) was resolved to 12.1.0, which depends on GoogleSignIn (~> 7.1) was resolved to 7.1.0, which depends on GTMAppAuth (< 5.0, >= 4.1.1) was resolved to 4.1.1, which depends on GTMSessionFetcher/Core (< 4.0, >= 3.3)

ExpoAdapterGoogleSignIn (from `../node_modules/@react-native-google-signin/google-signin/expo/ios`) was resolved to 12.1.0, which depends on
  GoogleSignIn (~> 7.1) was resolved to 7.1.0, which depends on
    GTMSessionFetcher/Core (~> 3.3)

RNFBAuth (from `../node_modules/@react-native-firebase/auth`) was resolved to 20.0.0, which depends on
  Firebase/Auth (= 10.25.0) was resolved to 10.25.0, which depends on
    FirebaseAuth (~> 10.25.0) was resolved to 10.25.0, which depends on
      GTMSessionFetcher/Core (< 4.0, >= 2.1)

RNMLKitImageLabeler (from `../node_modules/@infinitered/react-native-mlkit-image-labeling/ios`) was resolved to 1.0.0, which depends on
  GoogleMLKit/ImageLabelingCustom (= 3.2.0) was resolved to 3.2.0, which depends on
    GoogleMLKit/MLKitCore (= 3.2.0) was resolved to 3.2.0, which depends on
      MLKitCommon (~> 8.0.0) was resolved to 8.0.0, which depends on
        GTMSessionFetcher/Core (~> 1.1)

You have either:

pod install --repo-update --ansi exited with non-zero code: 1

trevor-coleman commented 3 months ago

Looks like the new Expo has broken this again. If you can use Expo v50 it's know to work. Will take a look at upgrading the package.

trevor-coleman commented 3 months ago

Just released v2.0.0 which should be compatible with Expo v51

https://github.com/infinitered/react-native-mlkit/pull/151

You may need to specify a minimum deployment target, and compileSDKversion in your app.json.