From 335ebf9182daa53dca76cca611978a7ae772f4a1 Mon Sep 17 00:00:00 2001 From: Peter Lucak Date: Sat, 16 Nov 2019 01:23:18 -0500 Subject: [PATCH] CocoaPods - Add Tag Version Why? * This change will make the CocoaPods version which is installed match the NodeJS version used. Currently, CocoaPods will install the latest version on head which could not match the JavaScript version of the library. Changes: 1. Use the version tag to match the version installed by CocoaPods to that coming the from the `package.json` file. --- RNFastImage.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RNFastImage.podspec b/RNFastImage.podspec index 399a93ec8..504888e24 100644 --- a/RNFastImage.podspec +++ b/RNFastImage.podspec @@ -12,10 +12,10 @@ Pod::Spec.new do |s| s.platforms = { :ios => "8.0", :tvos => "9.0" } s.framework = 'UIKit' s.requires_arc = true - s.source = { :git => "https://github.com/DylanVann/react-native-fast-image.git" } + s.source = { :git => "https://github.com/DylanVann/react-native-fast-image.git", :tag => "v#{s.version} } s.source_files = "ios/**/*.{h,m}" s.dependency 'React' s.dependency 'SDWebImage', '~> 5.0' s.dependency 'SDWebImageWebPCoder', '~> 0.2.3' -end \ No newline at end of file +end