Expo SDK 46 iOS build failed in pod installation step
Asked Answered
D

5

5

I am trying to build iOS app from expo managed project. The build fails At Pod installation step.

In Expo SDK 44, 45 everything was okay. But when I upgrade to SDK 46, I am facing the issue.

Here is my package.json

{
  "name": "App1234",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@expo/vector-icons": "^13.0.0",
    "@openspacelabs/react-native-zoomable-view": "^2.0.4",
    "@react-native-community/datetimepicker": "6.2.0",
    "@react-native-community/netinfo": "9.3.0",
    "@react-native-community/slider": "4.2.3",
    "@react-native-google-signin/google-signin": "^8.1.0",
    "@react-navigation/bottom-tabs": "^6.4.0",
    "@react-navigation/drawer": "^6.5.0",
    "@react-navigation/native": "^6.0.13",
    "@react-navigation/native-stack": "^6.9.0",
    "@react-navigation/stack": "^6.3.2",
    "@stripe/stripe-react-native": "0.13.1",
    "@types/react-native": "~0.69.1",
    "apisauce": "^2.1.6",
    "expo": "~46.0.13",
    "expo-apple-authentication": "^4.3.0",
    "expo-constants": "^13.2.4",
    "expo-document-picker": "^10.3.0",
    "expo-firebase-recaptcha": "^2.3.0",
    "expo-font": "^10.2.1",
    "expo-image-picker": "^13.3.1",
    "expo-linear-gradient": "^11.4.0",
    "expo-linking": "^3.2.2",
    "expo-location": "^14.3.0",
    "expo-notifications": "^0.16.1",
    "expo-secure-store": "^11.3.0",
    "expo-tracking-transparency": "^2.3.1",
    "expo-updates": "^0.14.6",
    "firebase": "9.9.2",
    "formik": "^2.2.9",
    "html-entities": "^2.3.3",
    "lodash": "^4.17.21",
    "lottie-react-native": "5.1.3",
    "mime": "^3.0.0",
    "moment": "^2.29.4",
    "qs": "^6.11.0",
    "react": "18.0.0",
    "react-native": "0.69.6",
    "react-native-draggable-flatlist": "^3.1.2",
    "react-native-fbsdk-next": "^11.0.0",
    "react-native-geocoding": "^0.5.0",
    "react-native-gesture-handler": "~2.5.0",
    "react-native-google-mobile-ads": "^8.2.0",
    "react-native-maps": "0.31.1",
    "react-native-phone-number-input": "^2.1.0",
    "react-native-progress": "^5.0.0",
    "react-native-razorpay": "^2.2.9",
    "react-native-read-more-text": "^1.1.2",
    "react-native-reanimated": "~2.9.1",
    "react-native-safe-area-context": "4.3.1",
    "react-native-screens": "~3.15.0",
    "react-native-svg": "12.3.0",
    "react-native-webview": "11.23.0",
    "react-native-youtube-iframe": "^2.2.2",
    "typescript": "^4.6.3",
    "yup": "^0.32.11"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9"
  },
  "private": true
}

Here is Install Pods logs

Using Expo modules
Auto-generating `.xcode.env.local` with $NODE_BINARY=/Users/expo/.nvm/versions/node/v16.13.2/bin/node
Adding a custom script phase for Pod RNGoogleMobileAds: [RNGoogleMobileAds] Configuration
Auto-linking React Native modules for target `HomListi`: RNDateTimePicker, RNGestureHandler, RNGoogleMobileAds, RNGoogleSignin, RNReanimated, RNSVG, RNScreens, lottie-react-native, react-native-fbsdk-next, react-native-maps, react-native-netinfo, react-native-razorpay, react-native-safe-area-context, react-native-slider, react-native-webview, and stripe-react-native
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[stderr] /Users/expo/workingdir/build/node_modules/react-native-fbsdk-next/react-native-fbsdk-next.podspec:4: warning: already initialized constant Pod::FBSDKVersion
[stderr] /Users/expo/workingdir/build/node_modules/react-native-fbsdk-next/react-native-fbsdk-next.podspec:4: warning: previous definition of FBSDKVersion was here
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
[!] CocoaPods could not find compatible versions for pod "ExpoAdapterGoogleSignIn":
  In Podfile:
    ExpoAdapterGoogleSignIn (from `../node_modules/@react-native-google-signin/google-signin/ios`)
Specs satisfying the `ExpoAdapterGoogleSignIn (from `../node_modules/@react-native-google-signin/google-signin/ios`)` dependency were found, but they required a higher minimum deployment target.
Error: Compatible versions of some pods could not be resolved.
You are seeing this error because either:
  - Versions in the cached Podfile.lock do not match required values in Podspecs of some installed libraries. To fix this, you can re-run build command with "--clear-cache" option, or select "Clear cache and retry build" on the build page.
  - Some of the pods used in your project depend on different versions of the same pod. See logs for more information.

I've used 'eas build -p ios' command also used 'eas build -p ios --clear-cache'

didn't work.

Can anybody help please. Please please please!!!!

Detestable answered 9/11, 2022 at 11:29 Comment(0)
E
8

Update your Podfile platform to 13:

platform :ios, '13.0'

Enfield answered 24/11, 2022 at 19:43 Comment(3)
How can i update Podfile platform? I am using expo managed project.Detestable
@HabiburRahman you can use this plugin docs.expo.dev/versions/latest/sdk/build-propertiesInterfile
Hi, i have an expo managed project and when i deploy i get then same error why is that?Deformed
B
3

Update the Pod file i.e platform to 13.0 or higher.

platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'

Bennybenoit answered 18/11, 2022 at 10:6 Comment(3)
How can i update pod file platform? I am using expo managed project.Detestable
To access native configurations, you need to eject your expo project to react-native (from managed to bare workglow), then you have access to Android and iOS native modules. docs.expo.dev/introduction/managed-vs-bare/#bare-workflowEnfield
Does this mean you cannot you an Expo Managerd App , with iOS 13 or is there any other way to update within an Expo Manage App?Musicianship
E
1

I had the same issue with the version "@react-native-google-signin/google-signin":"11.0.0", my project is managed by expo i was able to fix that by. adding this line "deploymentTarget": "13.4" inside "ios" object of this file root_of_project/app.json

Ecto answered 30/1 at 2:44 Comment(0)
K
0

try downgrade version "@react-native-google-signin/google-signin":"8.0.0"

Keyser answered 11/11, 2022 at 8:1 Comment(1)
I've tried 8.0.0. Same issue. 😒Detestable
I
0

For me the issue was that [email protected] was asking for ios deploymentTarget 13.4 so i had to set it in app.json using https://docs.expo.dev/versions/latest/sdk/build-properties/

You can check required version in node_modules/@react-native-google-signin/google-signin/expo/ios/ExpoAdapterGoogleSignIn.podspec

Iq answered 4/10 at 7:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.