From aa8ead7cd67b40285bcd4f1cb1be32934ebfa8f0 Mon Sep 17 00:00:00 2001 From: Mikhail Chinyakov Date: Fri, 9 Oct 2015 14:38:27 -0700 Subject: [PATCH] Fix build process for react-native-fbsdk libraries. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: I found the problem with building react-native-fbsdk (https://github.com/facebook/react-native-fbsdk) libraries when I used cocoapods. When we use the option 'header_mappings_dir = "."' , header files of React will be copied with subfolders structures, not into one folder "${PODS_ROOT}/Headers/Public/React". And we should add recursive search and write "${PODS_ROOT}/Headers/Public/React/**". However writing code in auto-generated files is not good idea. Closes https://github.com/facebook/react-native/pull/3248 Reviewed By: @​svcscm Differential Revision: D2528021 Pulled By: @vjeux fb-gh-sync-id: 4ea76eac4035f0bd7c5894f604f84f903714a4e3 --- React.podspec | 1 - 1 file changed, 1 deletion(-) diff --git a/React.podspec b/React.podspec index 4b762c858..523020ae9 100644 --- a/React.podspec +++ b/React.podspec @@ -24,7 +24,6 @@ Pod::Spec.new do |s| s.platform = :ios, "7.0" s.prepare_command = 'npm install --production' s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli" - s.header_mappings_dir = "." s.subspec 'Core' do |ss| ss.source_files = "React/**/*.{c,h,m}"