Skip to content

Commit

Permalink
Workaround the 32bit target on Xcode 15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dreampiggy committed Mar 9, 2024
1 parent ff4abbe commit 5e452e8
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,27 @@ target 'SDWebImageSwiftUITests tvOS' do
project test_project_path
platform :tvos, '14.0'
all_test_pods
end
end


# Inject macro during SDWebImage Demo and Tests
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
if target.product_name == 'SDWebImage'
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) SD_CHECK_CGIMAGE_RETAIN_SOURCE=1'
end
elsif target.product_name == 'SDWebImageSwiftUI'
# Do nothing
else
target.build_configurations.each do |config|
# Override the min deployment target for some test specs to workaround `libarclite.a` missing issue
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.11'
config.build_settings['TVOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['WATCHOS_DEPLOYMENT_TARGET'] = '2.0'
config.build_settings['XROS_DEPLOYMENT_TARGET'] = '1.0'
end
end
end
end

0 comments on commit 5e452e8

Please sign in to comment.