candlefinance / faster-image

Fast image loading for React Native backed by performant native libraries.
https://candle.fi/discord
MIT License
479 stars 21 forks source link

Can not run pod-install #5

Closed tdvuanh closed 2 months ago

tdvuanh commented 3 months ago

I would like to try this library to increase our application

I followed the document just run: yarn add @candlefinance/faster-image but then when I ran our app, I got the error: "requireNativeComponent: "FasterImageView" was not found in the UIManager." So, I tried to run npx pod-install, and also pod install but I got another error: "cocoaPods could not find compatible versions for pod "FasterImage": In Podfile: FasterImage (from ../node_modules/@candlefinance/faster-image)

Specs satisfying the FasterImage (from../node_modules/@candlefinance/faster-image) dependency were found, but they required a higher minimum deployment target."

Then, I edited our Podfile with the current minimum_targer from "12.4" to "13.0" (follow platforms in your library podspec) but the error still stays.

Please help me in this situation. I want to try your library to increase our application performance. Thanks

gtokman commented 3 months ago

I would like to try this library to increase our application

I followed the document just run: yarn add @candlefinance/faster-image but then when I ran our app, I got the error: "requireNativeComponent: "FasterImageView" was not found in the UIManager." So, I tried to run npx pod-install, and also pod install but I got another error: "cocoaPods could not find compatible versions for pod "FasterImage": In Podfile: FasterImage (from ../node_modules/@candlefinance/faster-image)

Specs satisfying the FasterImage (from../node_modules/@candlefinance/faster-image) dependency were found, but they required a higher minimum deployment target."

Then, I edited our Podfile with the current minimum_targer from "12.4" to "13.0" (follow platforms in your library podspec) but the error still stays.

Please help me in this situation. I want to try your library to increase our application performance. Thanks

Could you try pod deintegrate & then pod install again. Sometimes Xcode has caching problems.

tdvuanh commented 3 months ago

Thanks for your response @gtokman , I tried your solution but the issue still stays, I am using macos 14.3.1 and xcode 15.3 For more information what I tried cd ios && pod deintegrate && pod install

gtokman commented 3 months ago

Thanks for your response @gtokman , I tried your solution but the issue still stays, I am using macos 14.3.1 and xcode 15.3 For more information what I tried cd ios && pod deintegrate && pod install

Do you know what iOS version you're using?

For example this is the demo app in the repo: https://github.com/candlefinance/faster-image/blob/0e562b6797c35ca87dc700b1d99b7d521cb4ddfc/example/ios/Podfile#L4

tdvuanh commented 3 months ago

we are running on ios 17.4. I already set the minimum SDK in Xcode and also our Podfile is "13.0", but still can not run pod-install

tdvuanh commented 2 months ago

I will close this issue from there, run cd ios && pod deintegrate && pod install can fix my issue