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

Build fails after adding the package and library in Xcode manually

Open abhirup03 opened this issue 7 years ago • 13 comments

I have added the libraries manually in Xcode to my project. But after running it crashes and says (as attached in the screenshot below):

Simulator Screen Shot - iPhone 6 - 2019-04-26 at 13 27 56

abhirup03 avatar Apr 26 '19 10:04 abhirup03

Same problem here, did anyone find a solution?

ricardovcorrea avatar Apr 30 '19 02:04 ricardovcorrea

same problem

Samykills avatar May 01 '19 07:05 Samykills

@abhirup03 @ricardovcorrea @Samykills , what are your verions of XCode, React, React Native and react-native-fast-image? Every piece of information is useful to figure out what is happening here :)

Ilphrin avatar May 06 '19 15:05 Ilphrin

Same problem:

"react": "^16.8.3",
"react-native": "^0.59.5",
"react-native-fast-image": "^6.0.0"

xcode 10.2

@Ilphrin thanks for looking into this!

Ross-Landry avatar May 12 '19 05:05 Ross-Landry

"react": "16.3.1", "react-native": "0.55.4", "react-native-fast-image": "^5.0.3",

xcode 10.2

Same here when I try to build an old project.

AugustusCosta avatar May 12 '19 20:05 AugustusCosta

I dragged libFastImage.a to the bottom of "Link Binary With LIbraries" in Xcode. This solved the issue for me.

Ross-Landry avatar May 12 '19 21:05 Ross-Landry

@Ross-Landry I try this and clean everything but not work. I have another project here with the same libs and versions and it's working.

Trying here to figure out the source of this issue.

AugustusCosta avatar May 12 '19 22:05 AugustusCosta

Same error for Android.

AugustusCosta avatar May 12 '19 22:05 AugustusCosta

@AugustusCosta I did one other thing differently before it started working.

Remove the libFastImage.a file from Link Binary With Libraries, then add it again using the + sign (instead of dragging and dropping the file, which is what I did originally)

Ross-Landry avatar May 12 '19 22:05 Ross-Landry

@Ross-Landry

Yes I tried this too after all.

Thanks for your attention.

AugustusCosta avatar May 12 '19 22:05 AugustusCosta

I figure out what's happening. The version of the lib installed was not 5.0.3 but 5.3.1. Just modify this "react-native-fast-image": "^5.0.3", for "react-native-fast-image": "5.0.3", and clean and install everything.

The 5.3.1 version need I high version of react.

@abhirup03 check this. @Ross-Landry thanks.

AugustusCosta avatar May 12 '19 23:05 AugustusCosta

@AugustusCosta even i have tried it before by changing the version in my package. And have cleaned and ran a new build. Still it was failing.

abhirup03 avatar May 15 '19 04:05 abhirup03

This came from linking FastImage into an iOS project by hand, with its own Xcode project (and, before 7.0, a bundled copy of SDWebImage). FastImage is installed with CocoaPods through React Native's autolinking (cd ios && pod install), with SDWebImage as a pod, and the Xcode project for manual linking was removed in 9.0.0 (#1246). FastImage 10 is a New Architecture component for React Native 0.83 and later. Closing; please open a new issue if installing FastImage 10 fails.

DylanVann avatar Oct 12 '26 17:10 DylanVann