Procházet zdrojové kódy

Fix the CocoaPods podspec when using SDWebImage/Core only

Which will cause the resource bundle missing
DreamPiggy před 1 rokem
rodič
revize
3d7b0038b8
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      CHANGELOG.md
  2. 1 1
      SDWebImage.podspec

+ 1 - 0
CHANGELOG.md

@@ -10,6 +10,7 @@ See [all tickets marked for the 5.19.2 release](https://github.com/SDWebImage/SD
 - - This is the canonical release of binary framework. Import [certifacate](https://github.com/SDWebImage/SDWebImage/blob/master/Certificate/SDWebImage%20Signing%20Certificate.cer) and verify the [public key](https://github.com/SDWebImage/SDWebImage/blob/master/Certificate/SDWebImage%20Signing%20Certificate.pem) when you download the binary framework from unknown sources to avoid supply chain attack.
 - - For Carthage user who build its own SDWebImage binary framwork, you must sign yourself.
 - - See more in https://developer.apple.com/documentation/Xcode/verifying-the-origin-of-your-xcframeworks
+- Fix CocoaPods resource bundle when using only `SDWebImage/Core`
 
 ## [5.19.1 - 5.9 Patch, on Mar 26th, 2024](https://github.com/rs/SDWebImage/releases/tag/5.19.1)
 See [all tickets marked for the 5.19.1 release](https://github.com/SDWebImage/SDWebImage/milestone/133)

+ 1 - 1
SDWebImage.podspec

@@ -35,6 +35,7 @@ Pod::Spec.new do |s|
   s.subspec 'Core' do |core|
     core.source_files = 'SDWebImage/Core/*.{h,m}', 'WebImage/SDWebImage.h', 'SDWebImage/Private/*.{h,m}'
     core.private_header_files = 'SDWebImage/Private/*.h'
+    core.resource_bundles = {'SDWebImage' => ['WebImage/PrivacyInfo.xcprivacy']}
   end
 
   s.subspec 'MapKit' do |mk|
@@ -46,5 +47,4 @@ Pod::Spec.new do |s|
     mk.framework = 'MapKit'
     mk.dependency 'SDWebImage/Core'
   end
-  s.resource_bundles = {'SDWebImage' => ['WebImage/PrivacyInfo.xcprivacy']}
 end