Add Pods Public Header path to HEADER_SEARCH_PATHS (#140)

When react-native is installed using cocoapods xcode cannot find react headers for react-native-config. This PR adds to HEADER_SEARCH_PATHS to look at header files in the Pods. 
Since Cocoapods does not allow build scripts it's still a good idea to link react-native-config with react-native link and add support for projects that do use react native via cocoapods
This commit is contained in:
Chaitanya Bhagvan 2017-09-26 00:36:12 +05:30 committed by Pedro Belo
parent 55bc85decf
commit accfef9b8a
1 changed files with 2 additions and 0 deletions

View File

@ -246,6 +246,7 @@
HEADER_SEARCH_PATHS = (
"$(SRCROOT)/../../react-native/React/**",
"${SYMROOT}",
"$(SRCROOT)/../../../ios/Pods/Headers/Public/**",
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
@ -259,6 +260,7 @@
HEADER_SEARCH_PATHS = (
"$(SRCROOT)/../../react-native/React/**",
"${SYMROOT}",
"$(SRCROOT)/../../../ios/Pods/Headers/Public/**",
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";