From ab3885f183b172275d40767dd6b0eb4e4469b142 Mon Sep 17 00:00:00 2001 From: Jacob Caban-Tomski Date: Tue, 19 May 2020 11:37:10 -0600 Subject: [PATCH] Add ouput file to podspec (#454) Resolves https://github.com/luggit/react-native-config/issues/391 Based on https://github.com/luggit/react-native-config/issues/391#issuecomment-571948199 Add correct output file. Update input file to use correct root path. --- react-native-config.podspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/react-native-config.podspec b/react-native-config.podspec index 918eb47..e0dfec7 100644 --- a/react-native-config.podspec +++ b/react-native-config.podspec @@ -25,7 +25,8 @@ HOST_PATH="$SRCROOT/../.." "${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig/BuildDotenvConfig.rb" "$HOST_PATH" "${PODS_TARGET_SRCROOT}/ios/ReactNativeConfig" ), execution_position: :before_compile, - input_files: ['$(SRCROOT)/ReactNativeConfig/BuildDotenvConfig.rb'] + input_files: ['$PODS_TARGET_SRCROOT/ios/ReactNativeConfig/BuildDotenvConfig.rb'], + output_files: ['$PODS_TARGET_SRCROOT/ios/ReactNativeConfig/GeneratedDotEnv.m'] } s.source_files = 'ios/**/*.{h,m}'