diff --git a/react-native-exponea-sdk.podspec b/react-native-exponea-sdk.podspec index af001da..2fb0aa3 100644 --- a/react-native-exponea-sdk.podspec +++ b/react-native-exponea-sdk.podspec @@ -33,6 +33,19 @@ Pod::Spec.new do |s| # uses) so wholemodule optimization is preserved for dynamic/default builds. # See: https://github.com/exponea/exponea-react-native-sdk/issues/138 if ENV['USE_FRAMEWORKS'] == 'static' - s.pod_target_xcconfig['SWIFT_COMPILATION_MODE'] = 'incremental' + pod_target_xcconfig = s.attributes_hash['pod_target_xcconfig'] || {} + pod_target_xcconfig['HEADER_SEARCH_PATHS'] = [ + pod_target_xcconfig['HEADER_SEARCH_PATHS'] || '$(inherited)', + '"$(PODS_ROOT)/../../node_modules/react-native/ReactCommon"', + '"${PODS_CONFIGURATION_BUILD_DIR}/React-debug/React_debug.framework/Headers"', + '"${PODS_CONFIGURATION_BUILD_DIR}/react-native-exponea-sdk/react_native_exponea_sdk.framework/Headers"', + '"$(OBJECT_FILE_DIR_normal)/$(CURRENT_ARCH)"', + '"$(DERIVED_SOURCES_DIR)"' + ].compact.join(' ') + s.pod_target_xcconfig = pod_target_xcconfig.merge( + 'CLANG_CXX_LANGUAGE_STANDARD' => rct_cxx_language_standard(), + 'SWIFT_COMPILATION_MODE' => 'incremental', + 'SWIFT_OBJC_INTERFACE_HEADER_NAME' => 'react_native_exponea_sdk-Swift.h' + ) end end