mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-20 02:11:07 +00:00
675df92407
> pod install
Detected React Native module pod for RNSVG
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "React/RCTImage":
In Podfile:
RNSVG (from `../node_modules/react-native-svg`) was resolved to 11.0.1, which depends on
React/RCTImage
None of your spec sources contain a spec satisfying the dependency: `React/RCTImage`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
19 lines
673 B
Ruby
19 lines
673 B
Ruby
require 'json'
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
|
|
Pod::Spec.new do |s|
|
|
s.name = 'RNSVG'
|
|
s.version = package['version']
|
|
s.summary = package['description']
|
|
s.license = package['license']
|
|
s.homepage = package['homepage']
|
|
s.authors = 'Horcrux Chen'
|
|
s.platforms = { :ios => "9.0", :tvos => "9.2" }
|
|
s.source = { :git => 'https://github.com/react-native-community/react-native-svg.git', :tag => "v#{s.version}" }
|
|
s.source_files = 'ios/**/*.{h,m}'
|
|
s.requires_arc = true
|
|
s.dependency 'React'
|
|
s.dependency 'React-RCTImage'
|
|
end
|