From 5560a47c1dbc7daab1e4f4aac0667080fdea836a Mon Sep 17 00:00:00 2001 From: Michael Diarmid Date: Sun, 17 Feb 2019 15:06:14 -0800 Subject: [PATCH] Add `folly_compiler_flags` to Core subspec (#23488) Summary: This fixes the following iOS build error when using React via pods (using the new Xcode build system); > project/Pods/Folly/folly/portability/Config.h:20:10: 'folly/folly-config.h' file not found https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-463628317 https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-463675118 https://github.com/react-native-community/react-native-releases/issues/79#issuecomment-464117823 [iOS] [Fixed] - Fixed a "'folly/folly-config.h' file not found" build error when using React via CocoaPods Pull Request resolved: https://github.com/facebook/react-native/pull/23488 Differential Revision: D14121296 Pulled By: cpojer fbshipit-source-id: 5eb2ba3066aef2bc9cfb95a9172cbef921c47170 --- React.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/React.podspec b/React.podspec index 505264cad..ce9dc99b5 100644 --- a/React.podspec +++ b/React.podspec @@ -66,6 +66,7 @@ Pod::Spec.new do |s| "React/Views/RCTSlider*", "React/Views/RCTSwitch*", "React/Views/RCTWebView*" + ss.compiler_flags = folly_compiler_flags ss.header_dir = "React" ss.framework = "JavaScriptCore" ss.libraries = "stdc++"