From 966a15b2dd27cb6aef9e94e636324552efa83ea5 Mon Sep 17 00:00:00 2001 From: Stephen Radford Date: Thu, 14 May 2026 11:18:49 +0100 Subject: [PATCH 1/4] Fix static library compilation in podspec --- react-native-exponea-sdk.podspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/react-native-exponea-sdk.podspec b/react-native-exponea-sdk.podspec index af001da..73c2006 100644 --- a/react-native-exponea-sdk.podspec +++ b/react-native-exponea-sdk.podspec @@ -34,5 +34,7 @@ Pod::Spec.new do |s| # See: https://github.com/exponea/exponea-react-native-sdk/issues/138 if ENV['USE_FRAMEWORKS'] == 'static' s.pod_target_xcconfig['SWIFT_COMPILATION_MODE'] = 'incremental' + s.pod_target_xcconfig['SWIFT_OBJC_INTERFACE_HEADER_NAME'] = 'react_native_exponea_sdk-Swift.h' + s.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)"' end end From 09ec950ee63c9648ebbd432d18118515e0234cf1 Mon Sep 17 00:00:00 2001 From: Stephen Radford Date: Thu, 14 May 2026 11:26:59 +0100 Subject: [PATCH 2/4] Tweak podspec patch to check for xcconfig first --- react-native-exponea-sdk.podspec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/react-native-exponea-sdk.podspec b/react-native-exponea-sdk.podspec index 73c2006..1d5699d 100644 --- a/react-native-exponea-sdk.podspec +++ b/react-native-exponea-sdk.podspec @@ -33,8 +33,16 @@ 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 ||= {} s.pod_target_xcconfig['SWIFT_COMPILATION_MODE'] = 'incremental' s.pod_target_xcconfig['SWIFT_OBJC_INTERFACE_HEADER_NAME'] = 'react_native_exponea_sdk-Swift.h' - s.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)"' + s.pod_target_xcconfig['HEADER_SEARCH_PATHS'] = [ + s.pod_target_xcconfig['HEADER_SEARCH_PATHS'], + '"$(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(' ') end end From 0cba0e88a17817b8aaa6e5dbeabce853aa51b100 Mon Sep 17 00:00:00 2001 From: Stephen Radford Date: Thu, 14 May 2026 11:48:30 +0100 Subject: [PATCH 3/4] Merge xcconfig --- react-native-exponea-sdk.podspec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/react-native-exponea-sdk.podspec b/react-native-exponea-sdk.podspec index 1d5699d..50b91f8 100644 --- a/react-native-exponea-sdk.podspec +++ b/react-native-exponea-sdk.podspec @@ -33,16 +33,18 @@ 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 ||= {} - s.pod_target_xcconfig['SWIFT_COMPILATION_MODE'] = 'incremental' - s.pod_target_xcconfig['SWIFT_OBJC_INTERFACE_HEADER_NAME'] = 'react_native_exponea_sdk-Swift.h' - s.pod_target_xcconfig['HEADER_SEARCH_PATHS'] = [ - s.pod_target_xcconfig['HEADER_SEARCH_PATHS'], + 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( + 'SWIFT_COMPILATION_MODE' => 'incremental', + 'SWIFT_OBJC_INTERFACE_HEADER_NAME' => 'react_native_exponea_sdk-Swift.h' + ) end end From 6ddbe32cab52240fb9111517db4cf46ee6685db8 Mon Sep 17 00:00:00 2001 From: Stephen Radford Date: Fri, 15 May 2026 10:33:30 +0100 Subject: [PATCH 4/4] fix podspec clang standard --- react-native-exponea-sdk.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/react-native-exponea-sdk.podspec b/react-native-exponea-sdk.podspec index 50b91f8..2fb0aa3 100644 --- a/react-native-exponea-sdk.podspec +++ b/react-native-exponea-sdk.podspec @@ -43,6 +43,7 @@ Pod::Spec.new do |s| '"$(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' )