From 3d7b0038b8f0c1cb54327d6cb432f21e00b1d8f9 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Wed, 8 May 2024 17:47:42 +0800 Subject: [PATCH] Fix the CocoaPods podspec when using SDWebImage/Core only Which will cause the resource bundle missing --- CHANGELOG.md | 1 + SDWebImage.podspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ab97dd6..ac95914b 100644 --- a/CHANGELOG.md +++ b/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) diff --git a/SDWebImage.podspec b/SDWebImage.podspec index 53dc2acc..4cdedbc0 100644 --- a/SDWebImage.podspec +++ b/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