From b350b396777572a3056eeab59bc362a3745bcd0f Mon Sep 17 00:00:00 2001 From: Chris Leonavicius Date: Mon, 8 Apr 2024 19:48:20 -0700 Subject: [PATCH] fix: Adopt resource bundle for privacy manifest in Cocoapods --- AmplitudeSwift.podspec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AmplitudeSwift.podspec b/AmplitudeSwift.podspec index 14dd53d9..bbc8f125 100644 --- a/AmplitudeSwift.podspec +++ b/AmplitudeSwift.podspec @@ -13,21 +13,21 @@ Pod::Spec.new do |s| s.ios.deployment_target = '13.0' s.ios.source_files = 'Sources/Amplitude/**/*.{h,swift}' - s.ios.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy' + s.ios.resource_bundle = { 'Amplitude': ['Sources/Amplitude/PrivacyInfo.xcprivacy'] } s.tvos.deployment_target = '13.0' s.tvos.source_files = 'Sources/Amplitude/**/*.{h,swift}' - s.tvos.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy' + s.tvos.resource_bundle = { 'Amplitude': ['Sources/Amplitude/PrivacyInfo.xcprivacy'] } s.osx.deployment_target = '10.15' s.osx.source_files = 'Sources/Amplitude/**/*.{h,swift}' - s.osx.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy' + s.osx.resource_bundle = { 'Amplitude': ['Sources/Amplitude/PrivacyInfo.xcprivacy'] } # temporary disable watchos support due to: https://github.com/CocoaPods/CocoaPods/issues/11558 # unpaired watchos will cause failure, the fix of the above issue is merged but not released # s.watchos.deployment_target = '7.0' # s.watchos.source_files = 'Sources/Amplitude/**/*.{h,swift}' - # s.watchos.resources = 'Sources/Amplitude/PrivacyInfo.xcprivacy' + # s.watchos.resource_bundle = { 'Amplitude': ['Sources/Amplitude/PrivacyInfo.xcprivacy'] } s.dependency 'AnalyticsConnector', '~> 1.0.1'