From d288f69e4013eb0c9967a87ddace25aac08ebbbe Mon Sep 17 00:00:00 2001 From: Dalton Claybrook Date: Mon, 22 Feb 2021 15:34:05 -0500 Subject: [PATCH 1/2] Update podspec script to remove S files from watchOS target --- scripts/build_podspec.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build_podspec.sh b/scripts/build_podspec.sh index 37942e93..4880ca70 100755 --- a/scripts/build_podspec.sh +++ b/scripts/build_podspec.sh @@ -121,7 +121,10 @@ Pod::Spec.new do |s| s.tvos.deployment_target = '10.0' s.watchos.deployment_target = '6.0' - s.source_files = 'Sources/${target#Swift}/**/*.{swift,c,h,cc,S}' + s.source_files = 'Sources/${target#Swift}/**/*.{swift,c,h,cc}' + s.ios.source_files = 'Sources/${target#Swift}/**/*.S' + s.osx.source_files = 'Sources/${target#Swift}/**/*.S' + s.tvos.source_files = 'Sources/${target#Swift}/**/*.S' $public_header_files ${dependencies[*]-} $libraries From a1338d6d5886e1e3632a6cdbe39f5b91fc89cdf4 Mon Sep 17 00:00:00 2001 From: Dalton Claybrook Date: Tue, 23 Feb 2021 09:47:56 -0500 Subject: [PATCH 2/2] define NO_ASM macros for watchOS --- scripts/build_podspec.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/build_podspec.sh b/scripts/build_podspec.sh index 4880ca70..cfc9f0d8 100755 --- a/scripts/build_podspec.sh +++ b/scripts/build_podspec.sh @@ -125,6 +125,11 @@ Pod::Spec.new do |s| s.ios.source_files = 'Sources/${target#Swift}/**/*.S' s.osx.source_files = 'Sources/${target#Swift}/**/*.S' s.tvos.source_files = 'Sources/${target#Swift}/**/*.S' + + s.watchos.pod_target_xcconfig = { + 'GCC_PREPROCESSOR_DEFINITIONS' => 'OPENSSL_NO_ASM=1', + 'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '\$(inherited) OPENSSL_NO_ASM' + } $public_header_files ${dependencies[*]-} $libraries