From 9af717cb507e8c92c483a2eae6e36c906307f066 Mon Sep 17 00:00:00 2001 From: James Ide Date: Mon, 30 Mar 2015 12:47:58 -0700 Subject: [PATCH] [Pod] Preserve header directory structure The React code has relative imports like `#import "../React/Base/Layout.h"`. CocoaPods by default flattens the header files so they're all in a single directory, but specifying `header_mappings_dir` in the podspec preserves the directory structure. --- React.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/React.podspec b/React.podspec index 4ad740e4ad3592..38d7c4eb0b1358 100644 --- a/React.podspec +++ b/React.podspec @@ -21,6 +21,7 @@ Pod::Spec.new do |s| s.source_files = "React/**/*.{c,h,m}" s.resources = "Resources/*.png" s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli" + s.header_mappings_dir = "." s.exclude_files = "**/__tests__/*", "IntegrationTests/*" s.frameworks = "JavaScriptCore" s.requires_arc = true