From ef044e2c0d941135981a4b78ed99998c9b569e3f Mon Sep 17 00:00:00 2001 From: Jesse Luo Date: Wed, 13 Apr 2016 12:24:23 -0700 Subject: [PATCH] Fix failure of `pod lib lint`, which will close #6448. Tested on 0.23.0. Summary:The subspec should declare enough dependencies. Or the lint of podspec file will fail because CoaoaPods will not import necessary source on the building step. Closes https://github.com/facebook/react-native/pull/6955 Differential Revision: D3174681 fb-gh-sync-id: 59315efaeeb949951d7ee8e55dc7c979fcea4fbf fbshipit-source-id: 59315efaeeb949951d7ee8e55dc7c979fcea4fbf --- React.podspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/React.podspec b/React.podspec index d71236631b606d..ad76ad4c42c93f 100644 --- a/React.podspec +++ b/React.podspec @@ -54,6 +54,7 @@ Pod::Spec.new do |s| s.subspec 'RCTCameraRoll' do |ss| ss.dependency 'React/Core' + ss.dependency 'React/RCTImage' ss.source_files = "Libraries/CameraRoll/*.{h,m}" ss.preserve_paths = "Libraries/CameraRoll/*.js" end @@ -114,9 +115,9 @@ Pod::Spec.new do |s| end s.subspec 'RCTTest' do |ss| + ss.dependency 'React/Core' ss.source_files = "Libraries/RCTTest/**/*.{h,m}" ss.preserve_paths = "Libraries/RCTTest/**/*.js" ss.frameworks = "XCTest" end - end