Fix the CocoaPods podspec when using SDWebImage/Core only

Which will cause the resource bundle missing
This commit is contained in:
DreamPiggy 2024-05-08 17:47:42 +08:00
parent ad555bbdd9
commit 3d7b0038b8
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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