@@ -49,17 +49,30 @@ target 'WordPressAuthenticatorTests' do
4949 pod 'OCMock' , '~> 3.4'
5050 pod 'Expecta' , '1.0.6'
5151 pod 'Specta' , '1.0.7'
52+ end
53+
54+ # Used to donwload CLI tools.
55+ abstract_target 'Tools' do
56+ pod 'SwiftLint' , '~> 0.49'
57+ end
58+
59+ post_install do |installer |
60+ installer . pods_project . targets . each do |target |
61+ target . build_configurations . each do |configuration |
62+ # Let Pods targets inherit deployment target from the app
63+ # This solution is suggested here: https://github.com/CocoaPods/CocoaPods/issues/4859
64+ pod_ios_deployment_target = Gem ::Version . new ( configuration . build_settings [ 'IPHONEOS_DEPLOYMENT_TARGET' ] )
65+ configuration . build_settings . delete 'IPHONEOS_DEPLOYMENT_TARGET' if pod_ios_deployment_target <= ios_deployment_target
5266
53- post_install do |installer |
54- # Let Pods targets inherit deployment target from the app
55- # This solution is suggested here: https://github.com/CocoaPods/CocoaPods/issues/4859
56- # =====================================
57- #
58- installer . pods_project . targets . each do |target |
59- target . build_configurations . each do |configuration |
60- pod_ios_deployment_target = Gem ::Version . new ( configuration . build_settings [ 'IPHONEOS_DEPLOYMENT_TARGET' ] )
61- configuration . build_settings . delete 'IPHONEOS_DEPLOYMENT_TARGET' if pod_ios_deployment_target <= ios_deployment_target
62- end
67+ # This addresses Xcode 12, 13, and 14 showing an "Update to recommended
68+ # settings" warning on the Pods project.
69+ #
70+ # See:
71+ #
72+ # - https://github.com/CocoaPods/CocoaPods/issues/10189
73+ # - https://github.com/CocoaPods/CocoaPods/issues/11553
74+ configuration . build_settings . delete 'ARCHS'
75+ configuration . build_settings [ 'DEAD_CODE_STRIPPING' ] = 'YES'
6376 end
6477 end
6578end
0 commit comments