File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -59,4 +59,27 @@ target 'SDWebImageSwiftUITests tvOS' do
59
59
project test_project_path
60
60
platform :tvos , '14.0'
61
61
all_test_pods
62
- end
62
+ end
63
+
64
+
65
+ # Inject macro during SDWebImage Demo and Tests
66
+ post_install do |installer_representation |
67
+ installer_representation . pods_project . targets . each do |target |
68
+ if target . product_name == 'SDWebImage'
69
+ target . build_configurations . each do |config |
70
+ config . build_settings [ 'GCC_PREPROCESSOR_DEFINITIONS' ] = '$(inherited) SD_CHECK_CGIMAGE_RETAIN_SOURCE=1'
71
+ end
72
+ elsif target . product_name == 'SDWebImageSwiftUI'
73
+ # Do nothing
74
+ else
75
+ target . build_configurations . each do |config |
76
+ # Override the min deployment target for some test specs to workaround `libarclite.a` missing issue
77
+ config . build_settings [ 'IPHONEOS_DEPLOYMENT_TARGET' ] = '9.0'
78
+ config . build_settings [ 'MACOSX_DEPLOYMENT_TARGET' ] = '10.11'
79
+ config . build_settings [ 'TVOS_DEPLOYMENT_TARGET' ] = '9.0'
80
+ config . build_settings [ 'WATCHOS_DEPLOYMENT_TARGET' ] = '2.0'
81
+ config . build_settings [ 'XROS_DEPLOYMENT_TARGET' ] = '1.0'
82
+ end
83
+ end
84
+ end
85
+ end
You can’t perform that action at this time.
0 commit comments