react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 877 forks source link

With "@react-native-google-signin/google-signin": "^11.0.0", Cause: CocoaPods could not find compatible versions for pod "ExpoAdapterGoogleSignIn" #1228

Closed treksis closed 6 months ago

treksis commented 6 months ago

Unable to install after this commit.

https://github.com/react-native-google-signin/google-signin/pull/1225

It was working with "@react-native-google-signin/google-signin": "^10.1.1"

I got this error message after update to "@react-native-google-signin/google-signin": "^11.0.0"

If I go back to 10.1.1 it is working well.

Command pod install failed.
└─ Cause: CocoaPods could not find compatible versions for pod "ExpoAdapterGoogleSignIn":
In Podfile:
ExpoAdapterGoogleSignIn (from ../node_modules/@react-native-google-signin/google-signin/expo/ios)

Specs satisfying the ExpoAdapterGoogleSignIn (from ../node_modules/@react-native-google-signin/google-signin/expo/ios) dependency were found, but they required a higher minimum deployment target.

Repository with code that reproduces the issue

Fresh npx expo-create-app npx expo prebuild

package.json is attached below with app.json

Expected Behavior

Installation

Actual Behavior

Command `pod install` failed.
└─ Cause: CocoaPods could not find compatible versions for pod "ExpoAdapterGoogleSignIn":
  In Podfile:
    ExpoAdapterGoogleSignIn (from `../node_modules/@react-native-google-signin/google-signin/expo/ios`)

Specs satisfying the `ExpoAdapterGoogleSignIn (from `../node_modules/@react-native-google-signin/google-signin/expo/ios`)` dependency were found, but they required a higher minimum deployment target.

Environment

package.json

{
  "name": "my-app",
  "version": "1.0.0",
  "scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@invertase/react-native-apple-authentication": "^2.3.0",
    "@react-native-firebase/app": "^18.7.3",
    "@react-native-firebase/auth": "^18.7.3",
    "@react-native-google-signin/google-signin": "^11.0.0",
    "expo": "~49.0.15",
    "expo-build-properties": "~0.8.3",
    "expo-splash-screen": "~0.20.5",
    "expo-status-bar": "~1.6.0",
    "firebase": "^10.7.1",
    "react": "18.2.0",
    "react-native": "0.72.6"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0"
  },
  "private": true
}

app.json

{
  "expo": {
    "name": "my-app",
    "slug": "my-app",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "userInterfaceStyle": "light",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "ai.christmasgpt.myapp",
      "googleServicesFile": "./GoogleService-Info.plist"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "package": "ai.christmasgpt.myapp",
      "googleServicesFile": "./google-services.json"
    },
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "extra": {
      "eas": {
        "projectId": "ABCDEFG-ASDF-ASDF-ASDF-ASDFASD"
      }
    },
    "owner": "christmasgpt",
    "plugins": [
      "@react-native-firebase/app",
      [
        "expo-build-properties",
        {
          "ios": {
            "useFrameworks": "static"
          }
        }
      ],
      ["@react-native-google-signin/google-signin"]
    ]
  }
}
vonovak commented 6 months ago

Hello and thanks for asking, this is described in https://github.com/react-native-google-signin/google-signin/releases Thank you 🙂