From 8de7125eded382a3fe7a43c7cf086ebdc8150b14 Mon Sep 17 00:00:00 2001 From: zwt Date: Tue, 26 Mar 2024 13:38:42 +0800 Subject: [PATCH] fix PrivacyInfo.xcprivacy should be placed in SVProcessHUD.bundle #1125 --- SVProgressHUD.podspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SVProgressHUD.podspec b/SVProgressHUD.podspec index 826edea6..a66c9d81 100644 --- a/SVProgressHUD.podspec +++ b/SVProgressHUD.podspec @@ -18,12 +18,14 @@ Pod::Spec.new do |s| s.subspec 'Core' do |core| core.source_files = 'SVProgressHUD/*.{h,m}' - core.resources = ['SVProgressHUD/SVProgressHUD.bundle', 'SVProgressHUD/PrivacyInfo.xcprivacy'] + core.resources = ['SVProgressHUD/SVProgressHUD.bundle'] + core.resource_bundles = {'SVProgressHUD' => ['SVProgressHUD/PrivacyInfo.xcprivacy']} end s.subspec 'AppExtension' do |ext| ext.source_files = 'SVProgressHUD/*.{h,m}' - ext.resources = ['SVProgressHUD/SVProgressHUD.bundle', 'SVProgressHUD/PrivacyInfo.xcprivacy'] + ext.resources = ['SVProgressHUD/SVProgressHUD.bundle'] + ext.resource_bundles = {'AppExtension' => ['SVProgressHUD/PrivacyInfo.xcprivacy']} ext.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'SV_APP_EXTENSIONS=1' } end end