react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

SDWebImage pod issue

Open jinookkoo opened this issue 7 years ago • 10 comments

SDWebImage 5.3.1 released 2days ago

https://github.com/SDWebImage/SDWebImage/releases

react-native-fast-image has SDWebImage & SDWebImageWebPCoder

recently SDWebImage has no file called 'SDWebImage.h'

but SDWebImageWebPCoder has import 'SDWebImage.h'

so it occured import error

If I set SDWebImage pod version to 5.2.5 the error resolved

jinookkoo avatar Nov 11 '19 14:11 jinookkoo

I am seeing the same in my build:

[!] CocoaPods could not find compatible versions for pod "SDWebImage":
--
  | In snapshot (Podfile.lock):
  | SDWebImage (= 5.3.1, ~> 5.0)
  |  
  | In Podfile:
  | RNFastImage (from `../node_modules/react-native-fast-image`) was resolved to 7.0.2, which depends on
  | SDWebImage (~> 5.0)
  |  
  |  
  | You have either:
  | * changed the constraints of dependency `SDWebImage` inside your development pod `RNFastImage`.
  | You should run `pod update SDWebImage` to apply changes you've made.

Isn't there a better way than manually overwriting the dependency version?

taschik avatar Nov 12 '19 22:11 taschik

Any progress on this? Also happens with my project, using SDWebImage 5.3.1 don't work but if I use version 5.2.3 it works fine...

joelfsreis avatar Nov 20 '19 16:11 joelfsreis

Is this issue still re-producable ?

I’m the maintainer of SDWebImage and I can ensure the umbrella header SDWebImage.h exist.

I guess this because of the hard-coded path for react-native-fast-image. SDWebImage 5.3 seems does not change anything related to project...Only new added source files ?

dreampiggy avatar Mar 03 '20 17:03 dreampiggy

I just upgraded react-native-fast-image from ^7.0.2 to ^8.1.5 I get this issue. It happened after I ran pod install. I rolled back to ^7.0.2 and the problem went away.

joebernard avatar Mar 15 '20 00:03 joebernard

I just upgraded react-native-fast-image from ^7.0.2 to ^8.1.5 I get this issue. It happened after I ran pod install. I rolled back to ^7.0.2 and the problem went away.

Can anyone provide a reproducable demo (zip it and upload. You can keep the Podfile and Podfile.lock, but removing the Pods folder because it's large) ? Which I can pod install on it.

Provide the SDWebImageWebPCoder version is better

dreampiggy avatar Mar 15 '20 02:03 dreampiggy

I followed the steps on following link. These worked perfectly for me https://github.com/DylanVann/react-native-fast-image/blob/master/docs/troubleshooting.md

pankajgupta1 avatar Mar 16 '20 13:03 pankajgupta1

  1. remove ios/Podfile.lock
  2. and pod install

It will be fine!

everfire130 avatar Mar 20 '20 06:03 everfire130

I have edit ../node_modules/react-native-fast-image/RNFastImage.podspec change

s.dependency 'SDWebImage', '~> 5.0'
s.dependency 'SDWebImageWebPCoder', '~> 0.4.1'

to

s.dependency 'SDWebImage'
s.dependency 'SDWebImageWebPCoder'

It's work fine to me.

huapeng222 avatar May 23 '20 10:05 huapeng222

  1. remove ios/Podfile.lock
  2. and pod install

It will be fine!

It's working thanks :)

ajaymarathe9 avatar Oct 20 '20 05:10 ajaymarathe9

I have edit ../node_modules/react-native-fast-image/RNFastImage.podspec change

s.dependency 'SDWebImage', '~> 5.0'
s.dependency 'SDWebImageWebPCoder', '~> 0.4.1'

to

s.dependency 'SDWebImage'
s.dependency 'SDWebImageWebPCoder'

It's work fine to me.

It worked for me, but it can't be done on CI/CD, can it? Definitely the problem is there. Repoen the issue please.

tchesa avatar Dec 01 '25 09:12 tchesa