Created
November 17, 2022 02:09
-
-
Save mitsuharu/b484c377750153669cfc705ed7cdbadc to your computer and use it in GitHub Desktop.
PODFILE で導入するライブラリの IPHONEOS_DEPLOYMENT_TARGET を変更する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def change_deployment_target(installer) | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| | |
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 11.0 | |
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' | |
end | |
end | |
end | |
end | |
target 'myapp' do | |
post_install do |installer| | |
change_deployment_target(installer) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
メモ