soulaimane
soulaimane

Reputation: 121

CocoaPods could not find compatible versions for pod "hermes-engine"

After updating the React Native version, I'm unable to reinstall pod dependencies.

Error output:

Ignoring executable-hooks-1.6.1 because its extensions are not built. Try: gem pristine executable-hooks --version 1.6.1 Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0 Installing unimodules: [email protected] from ../node_modules/expo-application/ios [email protected] from ../node_modules/expo-constants/ios [email protected] from ../node_modules/expo-error-recovery/ios [email protected] from ../node_modules/expo-file-system/ios [email protected] from ../node_modules/expo-font/ios [email protected] from ../node_modules/expo-image-loader/ios [email protected] from ../node_modules/expo-json-utils/ios [email protected] from ../node_modules/expo-keep-awake/ios [email protected] from ../node_modules/expo-manifests/ios [email protected] from ../node_modules/expo-modules-core/ios [email protected] from ../node_modules/expo-permissions/ios [email protected] from ../node_modules/expo-app-loading/node_modules/expo-splash-screen/ios [email protected] from ../node_modules/expo-structured-headers/ios [email protected] from ../node_modules/expo-updates-interface/ios [email protected] from ../node_modules/unimodules-app-loader/ios [email protected] from ../node_modules/unimodules-barcode-scanner-interface/ios [email protected] from ../node_modules/unimodules-camera-interface/ios [email protected] from ../node_modules/unimodules-constants-interface/ios [email protected] from ../node_modules/@unimodules/core/ios [email protected] from ../node_modules/unimodules-face-detector-interface/ios [email protected] from ../node_modules/unimodules-file-system-interface/ios [email protected] from ../node_modules/unimodules-font-interface/ios [email protected] from ../node_modules/unimodules-image-loader-interface/ios [email protected] from ../node_modules/unimodules-permissions-interface/ios [email protected] from ../node_modules/@unimodules/react-native-adapter/ios [email protected] from ../node_modules/unimodules-sensors-interface/ios [email protected] from ../node_modules/unimodules-task-manager-interface/ios

Found some duplicated unimodule packages. Installed the ones with the highest version number. Make sure following dependencies of your project are resolving to one specific version: expo-font, expo-splash-screen

warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md Auto-linking React Native modules for target Bufunfa: RNCAsyncStorage, RNCMaskedView, RNGestureHandler, RNLocalize, RNReanimated, RNSVG, RNScreens, and react-native-safe-area-context [Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json Updating local specs repositories 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 Fetching podspec for hermes-engine from ../node_modules/react-native/sdks/hermes/hermes-engine.podspec [!] CocoaPods could not find compatible versions for pod "hermes-engine": In Podfile: hermes-engine (from ../node_modules/react-native/sdks/hermes/hermes-engine.podspec)

Specs satisfying the hermes-engine (from ../node_modules/react-native/sdks/hermes/hermes-engine.podspec) dependency were found, but they required a higher minimum deployment target.

I tried upgrade ruby verssion and pod update hermes-engine --no-repo-update but noting changes

Upvotes: 9

Views: 12812

Answers (6)

Jwags
Jwags

Reputation: 503

Referencing this answer on GitHub for others.

Try deleting your ios/Podfile.lock and re-rerunning the pod install command?

Upvotes: 0

Ihab
Ihab

Reputation: 21

I upgraded my ruby version using rvm to ruby-3.2.2, so maybe try using the version of ruby you created your podfile on. Then run:

pod update hermes-engine --no-repo-update

Upvotes: 0

peterhpchen
peterhpchen

Reputation: 96

I was experiencing the same issue when eas build, just deleted the directory of ios and executed eas build again. It resolved this problem.

Upvotes: 0

Dhiroo Verma
Dhiroo Verma

Reputation: 618

I was facing same issue, just deleted podfile.lock and run pod install again. It resolved my problem.

Upvotes: 5

Deepak Thakur
Deepak Thakur

Reputation: 3691

I executed this command in ios folder.. worked for me..

pod update hermes-engine --no-repo-update

Upvotes: 19

Brian Li
Brian Li

Reputation: 3040

If you're using Expo and eas build, you can run this code to build without a cache:

eas build --clear-cache

Alternatively, you can update your eas.json file with a cache key so that it builds cleanly:

{
  "build": {
    "production": {
      "cache": {
        "key": "whatever" // <- set this
      }
    }
}

Upvotes: 1

Related Questions