@@ -56,28 +56,22 @@ abstract_target 'CI' do
5656end
5757
5858post_install do |installer |
59- # Let Pods targets inherit deployment target from the app
60- # This solution is suggested here: https://github.com/CocoaPods/CocoaPods/issues/4859
61- # =====================================
62- #
6359 installer . pods_project . targets . each do |target |
6460 target . build_configurations . each do |configuration |
61+ # Let Pods targets inherit deployment target from the app
62+ # This solution is suggested here: https://github.com/CocoaPods/CocoaPods/issues/4859
6563 pod_ios_deployment_target = Gem ::Version . new ( configuration . build_settings [ 'IPHONEOS_DEPLOYMENT_TARGET' ] )
6664 configuration . build_settings . delete 'IPHONEOS_DEPLOYMENT_TARGET' if pod_ios_deployment_target <= ios_deployment_target
67- end
6865
69- # This addresses Xcode 12, 13, and 14 showing an "Update to recommended
70- # settings" warning on the Pods project.
71- #
72- # See:
73- #
74- # - https://github.com/CocoaPods/CocoaPods/issues/10189
75- # - https://github.com/CocoaPods/CocoaPods/issues/11553
76- installer . pods_project . targets . each do |target |
77- target . build_configurations . each do |config |
78- config . build_settings . delete 'ARCHS'
79- config . build_settings [ 'DEAD_CODE_STRIPPING' ] = 'YES'
80- end
66+ # This addresses Xcode 12, 13, and 14 showing an "Update to recommended
67+ # settings" warning on the Pods project.
68+ #
69+ # See:
70+ #
71+ # - https://github.com/CocoaPods/CocoaPods/issues/10189
72+ # - https://github.com/CocoaPods/CocoaPods/issues/11553
73+ configuration . build_settings . delete 'ARCHS'
74+ configuration . build_settings [ 'DEAD_CODE_STRIPPING' ] = 'YES'
8175 end
8276 end
8377end
0 commit comments