Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CocoaPods could not find compatible versions for pod "React-FabricImage" #42296

Closed
softmarshmallow opened this issue Jan 16, 2024 · 17 comments
Closed
Labels
Component: Image Type: Expo Issues that are related to Expo CLI/EAS or other integration built on top of React Native Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@softmarshmallow
Copy link

Old Version

0.72.6

New Version

0.73.2

Description

I've upgraded react-native version to 0.73.2 due to solve this #39441 issue.
I'm using RN with expo, yet expo does not has a version other then 50.0.0-preview.11 with 0.73.x support.

I've upgraded both expo and react-native, and I'm getting below pod install error while building / running for ios.

⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: CocoaPods could not find compatible versions for pod "React-FabricImage":
  In Podfile:
    React-FabricImage (from `../node_modules/react-native/ReactCommon`)

Specs satisfying the `React-FabricImage (from `../node_modules/react-native/ReactCommon`)` dependency were found, but they required a higher minimum deployment target.

pod install --repo-update --ansi exited with non-zero code: 1
✨  Done in 12.94s.

Steps to reproduce

Create expo project with npx create-expo-app
Both upgrade react-native (0.73.x) and expo (50.0.0-preview.x)
Run for ios, fails.

(same error log as above)

Affected Platforms

Runtime - iOS, Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.0
  CPU: (24) arm64 Apple M2 Ultra
  Memory: 28.32 GB / 128.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.9.0
    path: ~/.nvm/versions/node/v20.9.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.nvm/versions/node/v20.9.0/bin/yarn
  npm:
    version: 10.1.0
    path: ~/.nvm/versions/node/v20.9.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.14.3
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.11005911
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /opt/homebrew/opt/openjdk@17/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.2
    wanted: ^0.73.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false


### Stacktrace or Logs

```text
⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: CocoaPods could not find compatible versions for pod "React-FabricImage":
  In Podfile:
    React-FabricImage (from `../node_modules/react-native/ReactCommon`)

Specs satisfying the `React-FabricImage (from `../node_modules/react-native/ReactCommon`)` dependency were found, but they required a higher minimum deployment target.

pod install --repo-update --ansi exited with non-zero code: 1
✨  Done in 12.94s.


### Reproducer

https://github.com/react-native-community/reproducer-react-native

### Screenshots and Videos

_No response_
@softmarshmallow softmarshmallow added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Jan 16, 2024
@github-actions github-actions bot added Component: Image Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 16, 2024
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@cipolleschi
Copy link
Contributor

Hi @softmarshmallow, thanks for opening the issue, but this is more a problem of the integration between Expo and React Native, rather than a React Native problem.

As a first attempt,

  1. Make sure to run yarn install from the root folder of the project
  2. Run bundle exec pod deintegrate to clean the pod projeect
  3. Run bundle exec pod install to reinstall the pods.

If the problem persists, first try to open the issue with Expo, in their repo. They are better equipped to help you out with the integration between React native and Expo.

@cortinico cortinico added Type: Expo Issues that are related to Expo CLI/EAS or other integration built on top of React Native and removed Needs: Triage 🔍 Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jan 17, 2024
Copy link

⚠️ Issue is Related to Expo
ℹ️ It looks like your issue is related to Expo and not React Native core. Please open your issue in Expo's repository. If you are able to create a repro that showcases that this issue is also happening in React Native vanilla, we will be happy to re-open.

@hakanolgunsv
Copy link

The issue also happens in React Native CLI projects. It happened when i upgrade from 0.72.6 to 0.73.2 version of react-native. I removed ios/Pods folder and Podfile.lock file then i run pod install again then the error has gone.

@piclez
Copy link

piclez commented Jan 26, 2024

I'm having the same problem after I ran yarn upgrade --latest on my root React Native project and tried pod install.

My original project was using "react-native": "0.63.2" and trying to upgrade to "react-native": "0.73.2".

@cipolleschi
Copy link
Contributor

10 versions of React Native is a huge leap @piclez! 😮
Have you tried running bundle exec pod deintegrate and then bundle exec pod install again?

@nverdavtyan
Copy link

I have the same problem

@davidcort
Copy link

I have the same error after upgrade the SDK Expo version to 50 from 40.

I run:
cd ios && rm -rf Pods && pod cache clean --all && pod install && cd ..

But the error persist : /
image

@christian-smith
Copy link

I was able to fix this by running expo prebuild --clean. I believe the fix is because it changes the minimum iOS version to 13.4

@carlosvstokkur
Copy link

I was able to fix this by updating my Podfile setting the correct min_ios_version_supported

@Moonko
Copy link

Moonko commented Feb 9, 2024

I was able to fix this by updating my Podfile setting the correct min_ios_version_supported

Confirming that updating min iOS version solves the issue

@Areeb0206
Copy link

Areeb0206 commented Feb 12, 2024

first clear nodemodules
then after installing dependencies, upgrade the min_ios_version to 13.4
Moving further , install PODS
and if u have using expo , building from xcode will give an error (ExpoModuleCore min min_ios_version deployment error)
then, in podfile set it to 13.0 , then build from xcode , it will build

HAPPY CODING!

@Harmew
Copy link

Harmew commented Mar 11, 2024

in folder ios open Podfile and change this line

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

to

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

and try again npx pod-install

@TrustDec
Copy link

I upgrade react-native 0.71.16 to 0.73.6 through the upgrade assistant. then run rm -rf node_modules && rm -rf yarn.lock && yarn error occurred. Running bundle exec pod deintegrate and then bundle exec pod install did not solve this problem. I changed platform :ios, 13.0 to platform :ios, 13.4 in Podfile under the iOS file, and then re-executed npx pod-install to solve this problem.

@Taseen18
Copy link

Taseen18 commented Apr 6, 2024

My Podfile file had already said 13.4, I had another file called Podfile.properties.json which said 13.0. changed it to 13.4 and re-ran pod install. fixed it

@Christopher96u
Copy link

My Podfile file had already said 13.4, I had another file called Podfile.properties.json which said 13.0. changed it to 13.4 and re-ran pod install. fixed it

it worked to me too, thanks mate

@coderdiaz
Copy link

in folder ios open Podfile and change this line

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

to

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

and try again npx pod-install

It works for me using expo 50 and react-native 0.73.6 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Image Type: Expo Issues that are related to Expo CLI/EAS or other integration built on top of React Native Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

No branches or pull requests