Stuck with Podfile.lock on EAS build

[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
  In Podfile:
    EXFirebaseCore (from `../node_modules/expo-firebase-core/ios`) was resolved to 5.0.0, which depends on
      Firebase/Core (= 8.14.0) was resolved to 8.14.0, which depends on
        Firebase/CoreOnly (= 8.14.0)
    RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 15.2.0, which depends on
      Firebase/CoreOnly (= 9.3.0)
Error: Compatible versions of some pods could not be resolved.
You are seeing this error because either:
  - Versions in the Podfile.lock cached by EAS do not match required values for some of the libraries, it can be triggered when upgrading Expo SDK or any other library with native code. To fix that add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.
  - Some of your npm packages have native code that depend on different versions of the same pod. Please see logs for more info.

Hi everyone,
I am stuck with eas build on iOS.

I have an error telling me the sync between the cached Podfile.lock and mine is incorrect. But when I try to invalid the cache, I still have the same error.

When I build on my computer I haven’t any error message (from xcode or terminal).

I have checked all my packages dependencies, they match, so there is no incompatible versions between them.

Do you have a trick to avoid this error ?

Hey @dbkable,

Can you please run expo doctor on your local set up and see if there are any underlying issues?

Hey, thanks for answer!

This is my diagnostic, I wasn’t able to fix this warning…

Expected package @expo/config-plugins@^4.1.0
Found invalid:
  @expo/config-plugins@5.0.0
  (for more info, run: npm why @expo/config-plugins)

npm why

@expo/config-plugins@4.1.5
node_modules/@expo/config-plugins
  @expo/config-plugins@"^4.1.0" from the root project
  @expo/config-plugins@"~4.1.4" from @expo/cli@0.1.7
  node_modules/@expo/cli
    @expo/cli@"0.1.7" from expo@45.0.8
    node_modules/expo
      expo@"^45.0.6" from the root project
  @expo/config-plugins@"4.1.5" from @expo/config@6.0.26
  node_modules/@expo/cli/node_modules/@expo/config
    @expo/config@"~6.0.23" from @expo/cli@0.1.7
    node_modules/@expo/cli
      @expo/cli@"0.1.7" from expo@45.0.8
      node_modules/expo
        expo@"^45.0.6" from the root project
    @expo/config@"6.0.26" from @expo/metro-config@0.3.19
    node_modules/@expo/cli/node_modules/@expo/metro-config
      @expo/metro-config@"0.3.19" from @expo/cli@0.1.7
      node_modules/@expo/cli
        @expo/cli@"0.1.7" from expo@45.0.8
        node_modules/expo
          expo@"^45.0.6" from the root project
  @expo/config-plugins@"4.1.5" from @expo/config@6.0.26
  node_modules/@expo/dev-server/node_modules/@expo/config
    @expo/config@"6.0.26" from @expo/metro-config@0.3.19
    node_modules/@expo/dev-server/node_modules/@expo/metro-config
      @expo/metro-config@"0.3.19" from @expo/dev-server@0.1.116
      node_modules/@expo/dev-server
        @expo/dev-server@"0.1.116" from @expo/cli@0.1.7
        node_modules/@expo/cli
          @expo/cli@"0.1.7" from expo@45.0.8
          node_modules/expo
            expo@"^45.0.6" from the root project
  @expo/config-plugins@"4.1.5" from @expo/prebuild-config@4.0.4
  node_modules/@expo/prebuild-config
    @expo/prebuild-config@"~4.0.0" from @expo/cli@0.1.7
    node_modules/@expo/cli
      @expo/cli@"0.1.7" from expo@45.0.8
      node_modules/expo
        expo@"^45.0.6" from the root project
    @expo/prebuild-config@"~4.0.0" from expo-splash-screen@0.15.1
    node_modules/expo-splash-screen
      expo-splash-screen@"~0.15.1" from the root project
  @expo/config-plugins@"4.1.5" from @expo/config@6.0.26
  node_modules/@expo/prebuild-config/node_modules/@expo/config
    @expo/config@"6.0.26" from @expo/prebuild-config@4.0.4
    node_modules/@expo/prebuild-config
      @expo/prebuild-config@"~4.0.0" from @expo/cli@0.1.7
      node_modules/@expo/cli
        @expo/cli@"0.1.7" from expo@45.0.8
        node_modules/expo
          expo@"^45.0.6" from the root project
      @expo/prebuild-config@"~4.0.0" from expo-splash-screen@0.15.1
      node_modules/expo-splash-screen
        expo-splash-screen@"~0.15.1" from the root project
  @expo/config-plugins@"^4.1.5" from @react-native-firebase/app@15.2.0
  node_modules/@react-native-firebase/app
    @react-native-firebase/app@"^15.2.0" from the root project
  @expo/config-plugins@"^4.1.4" from config-plugin-react-native-intercom@1.4.3
  node_modules/config-plugin-react-native-intercom
    config-plugin-react-native-intercom@"^1.4.3" from the root project
  @expo/config-plugins@"^4.0.14" from expo-av@11.2.3
  node_modules/expo-av
    expo-av@"~11.2.3" from the root project
    expo-av@"~11.2.3" from @ko-platform/ko-app-core@0.51.10
    node_modules/@ko-platform/ko-app-core
      @ko-platform/ko-app-core@"^0.51.10" from the root project
      @ko-platform/ko-app-core@"^0.51.4" from @ko-platform/ko-app-core@0.51.10
  @expo/config-plugins@"^4.0.14" from expo-barcode-scanner@11.3.0
  node_modules/expo-barcode-scanner
    expo-barcode-scanner@"~11.3.0" from the root project
  @expo/config-plugins@"~4.1.4" from expo-build-properties@0.1.0
  node_modules/expo-build-properties
    expo-build-properties@"^0.1.0" from config-plugin-react-native-intercom@1.4.3
    node_modules/config-plugin-react-native-intercom
      config-plugin-react-native-intercom@"^1.4.3" from the root project
  @expo/config-plugins@"4.1.5" from @expo/config@6.0.26
  node_modules/expo-constants/node_modules/@expo/config
    @expo/config@"^6.0.14" from expo-constants@13.1.1
    node_modules/expo-constants
      expo-constants@"~13.1.1" from the root project
      expo-constants@"~13.1.1" from @ko-platform/ko-app-core@0.51.10
      node_modules/@ko-platform/ko-app-core
        @ko-platform/ko-app-core@"^0.51.10" from the root project
        @ko-platform/ko-app-core@"^0.51.4" from @ko-platform/ko-app-core@0.51.10
      expo-constants@"~13.1.1" from expo@45.0.8
      node_modules/expo
        expo@"^45.0.6" from the root project
      expo-constants@"~13.1.0" from expo-firebase-core@5.0.0
      node_modules/expo-firebase-core
        expo-firebase-core@"~5.0.0" from expo-firebase-recaptcha@2.2.0
        node_modules/expo-firebase-recaptcha
          expo-firebase-recaptcha@"~2.2.0" from the root project
      expo-constants@"~13.1.0" from expo-linking@3.1.0
      node_modules/expo-linking
        expo-linking@"~3.1.0" from the root project
      expo-constants@"~13.1.0" from expo-notifications@0.15.4
      node_modules/expo-notifications
        expo-notifications@"~0.15.4" from the root project
  @expo/config-plugins@"^4.0.14" from expo-contacts@10.2.0
  node_modules/expo-contacts
    expo-contacts@"~10.2.0" from the root project
  @expo/config-plugins@"^4.0.14" from expo-dev-client@1.0.1
  node_modules/expo-dev-client
    expo-dev-client@"~1.0.0" from the root project
  @expo/config-plugins@"^4.0.14" from expo-dev-launcher@1.0.1
  node_modules/expo-dev-launcher
    expo-dev-launcher@"1.0.1" from expo-dev-client@1.0.1
    node_modules/expo-dev-client
      expo-dev-client@"~1.0.0" from the root project
  @expo/config-plugins@"^4.0.14" from expo-dev-menu@1.0.1
  node_modules/expo-dev-menu
    expo-dev-menu@"1.0.1" from expo-dev-client@1.0.1
    node_modules/expo-dev-client
      expo-dev-client@"~1.0.0" from the root project
    expo-dev-menu@"1.0.1" from expo-dev-launcher@1.0.1
    node_modules/expo-dev-launcher
      expo-dev-launcher@"1.0.1" from expo-dev-client@1.0.1
      node_modules/expo-dev-client
        expo-dev-client@"~1.0.0" from the root project
  @expo/config-plugins@"^4.0.14" from expo-file-system@14.0.0
  node_modules/expo-file-system
    expo-file-system@"~14.0.0" from expo@45.0.8
    node_modules/expo
      expo@"^45.0.6" from the root project
  @expo/config-plugins@"^4.0.14" from expo-image-picker@13.1.1
  node_modules/expo-image-picker
    expo-image-picker@"~13.1.1" from the root project
  @expo/config-plugins@"^4.0.14" from expo-notifications@0.15.4
  node_modules/expo-notifications
    expo-notifications@"~0.15.4" from the root project
  @expo/config-plugins@"^4.0.14" from expo-updates@0.13.4
  node_modules/expo-updates
    expo-updates@"~0.13.4" from the root project
  @expo/config-plugins@"4.1.5" from @expo/config@6.0.26
  node_modules/expo-updates/node_modules/@expo/config
    @expo/config@"~6.0.23" from expo-updates@0.13.4
    node_modules/expo-updates
      expo-updates@"~0.13.4" from the root project
    @expo/config@"6.0.26" from @expo/metro-config@0.3.19
    node_modules/expo-updates/node_modules/@expo/metro-config
      @expo/metro-config@"0.3.19" from expo-updates@0.13.4
      node_modules/expo-updates
        expo-updates@"~0.13.4" from the root project
  @expo/config-plugins@"4.1.5" from @expo/config@6.0.26
  node_modules/jest-expo/node_modules/@expo/config
    @expo/config@"^6.0.14" from jest-expo@45.0.1
    node_modules/jest-expo
      jest-expo@"^45.0.1" from @ko-platform/ko-app-blockchain@0.14.9
      node_modules/@ko-platform/ko-app-blockchain
        @ko-platform/ko-app-blockchain@"^0.14.9" from the root project
      jest-expo@"^45.0.0" from @ko-platform/ko-app-core@0.51.10
      node_modules/@ko-platform/ko-app-core
        @ko-platform/ko-app-core@"^0.51.10" from the root project
        @ko-platform/ko-app-core@"^0.51.4" from @ko-platform/ko-app-core@0.51.10
  @expo/config-plugins@"^4.0.9" from react-native-imglysdk@2.15.0
  node_modules/react-native-imglysdk
    react-native-imglysdk@"2.15.0" from react-native-photoeditorsdk@2.15.0
    node_modules/react-native-photoeditorsdk
      react-native-photoeditorsdk@"^2.13.1" from the root project

@expo/config-plugins@5.0.0 dev
node_modules/@expo/config/node_modules/@expo/config-plugins
  @expo/config-plugins@"~5.0.0" from @expo/config@7.0.0
  node_modules/@expo/config
    @expo/config@"7.0.0" from @expo/metro-config@0.3.21
    node_modules/@expo/metro-config
      dev @expo/metro-config@"^0.3.3" from the root project

Hi @dbkable and @amanhimself

I think that expo doctor warning is not critical. I doubt it is the cause of your error. I created a issue for that a few days ago, though:

How are you building on your computer? And what dependencies do you have installed?

I see there was another issue about that expo doctor warning which has been fixed.

Try: expo doctor --fix-dependencies.

@wodin

Hello,

Nop the expo doctor --fix-dependencies doesn’t fix it.

How are you building on your computer?

With the terminal by using expo run:ios or by xcode with the normal way.

what dependencies do you have installed?

"@apollo/client": "^3.6.9",
    "@babel/preset-typescript": "^7.16.0",
    "@datadog/mobile-react-native": "^1.0.0",
    "@datadog/mobile-react-navigation": "^1.0.0",
    "@ethersproject/shims": "^5.6.0",
    "@expo/config-plugins": "^4.1.0",
    "@expo/configure-splash-screen": "^0.6.0",
    "@fortawesome/fontawesome-svg-core": "^1.2.35",
    "@fortawesome/free-brands-svg-icons": "^5.15.4",
    "@fortawesome/free-solid-svg-icons": "^5.15.4",
    "@fortawesome/pro-duotone-svg-icons": "^5.15.4",
    "@fortawesome/pro-light-svg-icons": "^5.15.4",
    "@fortawesome/pro-regular-svg-icons": "^5.15.4",
    "@fortawesome/pro-solid-svg-icons": "^5.15.4",
    "@fortawesome/react-native-fontawesome": "^0.3.0",
    "@gorhom/bottom-sheet": "^4.4.3",
    "@intercom/intercom-react-native": "^3.0.5",
    "@metamask/eth-sig-util": "^4.0.1",
    "@react-native-async-storage/async-storage": "^1.17.7",
    "@react-native-community/netinfo": "8.2.0",
    "@react-native-community/slider": "4.2.1",
    "@react-native-firebase/app": "^15.2.0",
    "@react-native-firebase/dynamic-links": "^15.2.0",
    "@react-native-masked-view/masked-view": "0.2.6",
    "@react-navigation/bottom-tabs": "^6.3.2",
    "@react-navigation/native": "^6.0.11",
    "@react-navigation/native-stack": "^6.7.0",
    "@shopify/flash-list": "^1.2.1",
    "@th3rdwave/react-navigation-bottom-sheet": "^0.2.2",
    "@types/apollo-upload-client": "^17.0.1",
    "@types/crypto-js": "^4.1.1",
    "@types/i18n-js": "^3.8.1",
    "@types/lodash": "^4.14.177",
    "@types/react-native-dotenv": "^0.2.0",
    "apollo-link-queue": "^3.1.0",
    "apollo-upload-client": "^17.0.0",
    "apollo3-cache-persist": "^0.14.1",
    "babel-plugin-inline-dotenv": "^1.6.0",
    "config-plugin-react-native-intercom": "^1.4.3",
    "crypto-js": "^4.1.1",
    "dayjs": "^1.11.4",
    "dotenv": "^16.0.1",
    "ethers": "^5.6.9",
    "expo": "^45.0.6",
    "expo-av": "~11.2.3",
    "expo-barcode-scanner": "~11.3.0",
    "expo-blur": "~11.1.0",
    "expo-clipboard": "~3.0.1",
    "expo-constants": "~13.1.1",
    "expo-contacts": "~10.2.0",
    "expo-crypto": "~10.2.0",
    "expo-dev-client": "~1.0.0",
    "expo-device": "~4.2.0",
    "expo-firebase-recaptcha": "~2.2.0",
    "expo-font": "~10.1.0",
    "expo-haptics": "~11.2.0",
    "expo-image-manipulator": "~10.3.1",
    "expo-image-picker": "~13.1.1",
    "expo-linear-gradient": "~11.3.0",
    "expo-linking": "~3.1.0",
    "expo-localization": "~13.0.0",
    "expo-notifications": "~0.15.4",
    "expo-random": "~12.2.0",
    "expo-secure-store": "~11.2.0",
    "expo-splash-screen": "~0.15.1",
    "expo-status-bar": "~1.3.0",
    "expo-updates": "~0.13.4",
    "expo-web-browser": "~10.2.1",
    "firebase": "^9.5.0",
    "graphql": "^16.0.1",
    "i": "^0.3.6",
    "install": "^0.13.0",
    "libphonenumber-js": "^1.9.43",
    "lodash": "^4.17.21",
    "lottie-react-native": "5.0.1",
    "nanoid": "^3.1.31",
    "node-libs-expo": "^0.0.3",
    "npm": "^8.11.0",
    "number-to-locale-string-polyfill": "^1.0.9",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-native": "0.68.2",
    "react-native-countdown-circle-timer": "^3.0.9",
    "react-native-dialog": "^9.2.2",
    "react-native-dotenv": "^3.3.1",
    "react-native-draggable-flatlist": "^3.1.2",
    "react-native-fast-image": "^8.5.11",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "~2.2.1",
    "react-native-get-random-values": "~1.8.0",
    "react-native-pager-view": "5.4.15",
    "react-native-photoeditorsdk": "^2.13.1",
    "react-native-qrcode-svg": "^6.1.2",
    "react-native-reanimated": "^2.4.1",
    "react-native-safe-area-context": "4.2.4",
    "react-native-screens": "~3.11.1",
    "react-native-svg": "12.3.0",
    "react-native-svg-transformer": "^0.14.3",
    "react-native-tab-view": "^3.1.1",
    "react-native-web": "0.17.7",
    "react-native-webview": "11.18.1",
    "react-native-youtube-iframe": "^2.2.2"

eas build -p ios --clear-cache

@brents Also tried this one :confused:

link to build page?

Do you need this? (e.g. Do you have a config plugin that you wrote yourself?) Otherwise you should probably uninstall it. Also it should probably be a devDependency rather than a dependency.

What is this? Oh, I see it’s GitHub - pksunkara/inflect: custom inflections for nodejs

Do you need this?

If I install your dependencies (except for the @fortawesome/pro-* stuff) and run expo doctor --fix-dependencies, then expo doctor does not complain about @expo/config-plugins@5.0.0 for me.

If that doesn’t work for you, maybe after that try removing your yarn.lock / package-lock.json and node_modules and reinstalling your dependencies to see if that helps.

EDIT: But change your react-native-reanimated dependency to:

    "react-native-reanimated": "~2.8.0",