Skip to content

Commit

Permalink
[Pod] Preserve header directory structure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ide committed Mar 30, 2015
1 parent c7a560e commit 5b2be72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions React.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Pod::Spec.new do |s|
s.platform = :ios, "7.0"
s.prepare_command = 'npm install'
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}"
Expand Down

0 comments on commit 5b2be72

Please sign in to comment.